Skip to content

Probabilistic commands

bf commands (10/10 implemented)

BF.RESERVE

Creates a new Bloom Filter

BF.ADD

Adds an item to a Bloom Filter

BF.MADD

Adds one or more items to a Bloom Filter. A filter will be created if it does not exist

BF.INSERT

Adds one or more items to a Bloom Filter. A filter will be created if it does not exist

BF.EXISTS

Checks whether an item exists in a Bloom Filter

BF.MEXISTS

Checks whether one or more items exist in a Bloom Filter

BF.SCANDUMP

Begins an incremental save of the bloom filter

BF.LOADCHUNK

Restores a filter previously saved using SCANDUMP

BF.INFO

Returns information about a Bloom Filter

BF.CARD

Returns the cardinality of a Bloom filter

cf commands (12/12 implemented)

CF.RESERVE

Creates a new Cuckoo Filter

CF.ADD

Adds an item to a Cuckoo Filter

CF.ADDNX

Adds an item to a Cuckoo Filter if the item did not exist previously.

CF.INSERT

Adds one or more items to a Cuckoo Filter. A filter will be created if it does not exist

CF.INSERTNX

Adds one or more items to a Cuckoo Filter if the items did not exist previously. A filter will be created if it does not exist

CF.EXISTS

Checks whether one or more items exist in a Cuckoo Filter

CF.MEXISTS

Checks whether one or more items exist in a Cuckoo Filter

CF.DEL

Deletes an item from a Cuckoo Filter

CF.COUNT

Return the number of times an item might be in a Cuckoo Filter

CF.SCANDUMP

Begins an incremental save of the bloom filter

CF.LOADCHUNK

Restores a filter previously saved using SCANDUMP

CF.INFO

Returns information about a Cuckoo Filter

cms commands (6/6 implemented)

CMS.INITBYDIM

Initializes a Count-Min Sketch to dimensions specified by user

CMS.INITBYPROB

Initializes a Count-Min Sketch to accommodate requested tolerances.

CMS.INCRBY

Increases the count of one or more items by increment

CMS.QUERY

Returns the count for one or more items in a sketch

CMS.MERGE

Merges several sketches into one sketch

CMS.INFO

Returns information about a sketch

topk commands (7/7 implemented)

TOPK.RESERVE

Initializes a TopK with specified parameters

TOPK.ADD

Increases the count of one or more items by increment

TOPK.INCRBY

Increases the count of one or more items by increment

TOPK.QUERY

Checks whether one or more items are in a sketch

TOPK.COUNT

Return the count for one or more items are in a sketch

TOPK.LIST

Return full list of items in Top K list

TOPK.INFO

Returns information about a sketch

Unsupported tdigest commands

To implement support for a command, see here

TDIGEST.CREATE (not implemented)

Allocates memory and initializes a new t-digest sketch

TDIGEST.RESET (not implemented)

Resets a t-digest sketch: empty the sketch and re-initializes it.

TDIGEST.ADD (not implemented)

Adds one or more observations to a t-digest sketch

TDIGEST.MERGE (not implemented)

Merges multiple t-digest sketches into a single sketch

TDIGEST.MIN (not implemented)

Returns the minimum observation value from a t-digest sketch

TDIGEST.MAX (not implemented)

Returns the maximum observation value from a t-digest sketch

TDIGEST.QUANTILE (not implemented)

Returns, for each input fraction, an estimation of the value (floating point) that is smaller than the given fraction of observations

TDIGEST.CDF (not implemented)

Returns, for each input value, an estimation of the fraction (floating-point) of (observations smaller than the given value + half the observations equal to the given value)

TDIGEST.TRIMMED_MEAN (not implemented)

Returns an estimation of the mean value from the sketch, excluding observation values outside the low and high cutoff quantiles

TDIGEST.RANK (not implemented)

Returns, for each input value (floating-point), the estimated rank of the value (the number of observations in the sketch that are smaller than the value + half the number of observations that are equal to the value)

TDIGEST.REVRANK (not implemented)

Returns, for each input value (floating-point), the estimated reverse rank of the value (the number of observations in the sketch that are larger than the value + half the number of observations that are equal to the value)

TDIGEST.BYRANK (not implemented)

Returns, for each input rank, an estimation of the value (floating-point) with that rank

TDIGEST.BYREVRANK (not implemented)

Returns, for each input reverse rank, an estimation of the value (floating-point) with that reverse rank

TDIGEST.INFO (not implemented)

Returns information and statistics about a t-digest sketch