The following table lists RedisBloom commands. See the command links for more information about each command’s syntax, arguments, and examples.

Bloom filter commands

Command Description
BF.ADD Adds an item to the filter.
BF.EXISTS Checks if an item exists in the filter.
BF.INFO Returns information about a Bloom filter.
BF.INSERT Adds multiple items to a filter. If the key does not exist, it creates a new filter.
BF.LOADCHUNK Restores a Bloom filter previously saved with BF.SCANDUMP.
BF.MADD Adds multiple items to the filter.
BF.MEXISTS For multiple items, checks if each item exists in the filter.
BF.RESERVE Creates a Bloom filter. Sets the false positive rate and capacity.
BF.SCANDUMP Starts an incremental save of a Bloom filter.

Cuckoo filter commands

Command Description
CF.ADD Adds an item to a filter.
CF.ADDNX Adds an item to a filter only if the item does not already exist.
CF.COUNT Returns the probable number of times an item occurs in the filter.
CF.DEL Removes one instance of an item from the filter.
CF.EXISTS Checks if an item exists in the filter.
CF.INFO Returns information about a cuckoo filter.
CF.INSERT Adds multiple items to a filter. Optionally sets the capacity if the filter does not already exist.
CF.INSERTNX Adds multiple items to a filter if they do not already exist. Optionally sets the capacity if the filter does not already exist.
CF.LOADCHUNK Restores a cuckoo filter previously saved with CF.SCANDUMP.
CF.MEXISTS For multiple items, checks if each item exists in the filter.
CF.RESERVE Creates a cuckoo filter and sets its capacity.
CF.SCANDUMP Starts an incremental save of a cuckoo filter.

Count-min sketch commands

Command Description
CMS.INCRBY Increases item counts.
CMS.INFO Returns width, depth, and total count of the sketch.
CMS.INITBYDIM Initializes a count-min sketch to the specified dimensions (width and depth).
CMS.INITBYPROB Initializes a count-min sketch to allow the specified overestimation percent for the item count and the probability of overestimation.
CMS.MERGE Merges several sketches into one sketch.
CMS.QUERY Returns the count for one or more items in a sketch.

Top-k commands

Command Description
TOPK.ADD Adds an item to the data structure.
TOPK.COUNT Returns probable item counts.
TOPK.INCRBY Increases the score of an item by the specified number.
TOPK.INFO Returns the number of required items (k), width, depth, and decay values.
TOPK.LIST Returns the keys of items in the top-k list. Optionally returns their item counts.
TOPK.QUERY Checks whether an item is one of top-k items.
TOPK.RESERVE Initializes a top-k with the specified number of top occurring items to keep, width, depth, and decay.

T-digest sketch commands

Command Description
TDIGEST.ADD Adds one or more samples to a t-digest sketch.
TDIGEST.CDF Estimates the fraction of all observations which are less than or equal to the specified value.
TDIGEST.CREATE Allocates memory and initializes a t-digest sketch.
TDIGEST.INFO Returns information about the t-digest sketch.
TDIGEST.MAX Returns the maximum value from the sketch.
TDIGEST.MERGE Copies values from one sketch to another.
TDIGEST.MERGESTORE Merges multiple sketches and stores the combined sketch in a new key.
TDIGEST.MIN Returns the minimum value from the sketch.
TDIGEST.QUANTILE Estimates one or more cutoffs.
TDIGEST.RESET Resets the sketch and reinitializes it.
TDIGEST.TRIMMED_MEAN Estimates the mean value from the sketch, excluding values outside the specified range.