--- Title: Probabilistic data structure commands alwaysopen: false categories: - docs - operate - stack description: Lists probabilistic data structure commands and provides links to the command reference pages. linkTitle: Commands toc: 'true' weight: 25 --- The following tables list probabilistic data structure commands. See the command links for more information about each command's syntax, arguments, and examples. ## Bloom filter commands | Command | Redis
Software | Redis
Cloud | Description | |:--------|:----------------------|:-----------------|:------| | [BF.ADD]({{< relref "commands/bf.add" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Adds an item to the filter. | | [BF.EXISTS]({{< relref "commands/bf.exists" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Checks if an item exists in the filter. | | [BF.INFO]({{< relref "commands/bf.info" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns information about a Bloom filter. | | [BF.INSERT]({{< relref "commands/bf.insert" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Adds multiple items to a filter. If the key does not exist, it creates a new filter. | | [BF.LOADCHUNK]({{< relref "commands/bf.loadchunk" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Restores a Bloom filter previously saved with [BF.SCANDUMP]({{< relref "commands/bf.scandump" >}}). | | [BF.MADD]({{< relref "commands/bf.madd" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Adds multiple items to the filter. | | [BF.MEXISTS]({{< relref "commands/bf.mexists" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | For multiple items, checks if each item exists in the filter. | | [BF.RESERVE]({{< relref "commands/bf.reserve" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Creates a Bloom filter. Sets the false positive rate and capacity. | | [BF.SCANDUMP]({{< relref "commands/bf.scandump" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Starts an incremental save of a Bloom filter. | ## Cuckoo filter commands | Command | Redis
Software | Redis
Cloud | Description | |:--------|:----------------------|:-----------------|:------| | [CF.ADD]({{< relref "commands/cf.add" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Adds an item to a filter. | | [CF.ADDNX]({{< relref "commands/cf.addnx" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Adds an item to a filter only if the item does not already exist. | | [CF.COUNT]({{< relref "commands/cf.count" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns the probable number of times an item occurs in the filter. | | [CF.DEL]({{< relref "commands/cf.del" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Removes one instance of an item from the filter. | | [CF.EXISTS]({{< relref "commands/cf.exists" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Checks if an item exists in the filter. | | [CF.INFO]({{< relref "commands/cf.info" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns information about a cuckoo filter. | | [CF.INSERT]({{< relref "commands/cf.insert" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Adds multiple items to a filter. Optionally sets the capacity if the filter does not already exist. | | [CF.INSERTNX]({{< relref "commands/cf.insertnx" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | 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]({{< relref "commands/cf.loadchunk" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Restores a cuckoo filter previously saved with [CF.SCANDUMP]({{< relref "commands/cf.scandump" >}}). | | [CF.MEXISTS]({{< relref "commands/cf.mexists" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | For multiple items, checks if each item exists in the filter. | | [CF.RESERVE]({{< relref "commands/cf.reserve" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Creates a cuckoo filter and sets its capacity. | | [CF.SCANDUMP]({{< relref "commands/cf.scandump" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Starts an incremental save of a cuckoo filter. | ## Count-min sketch commands | Command | Redis
Software | Redis
Cloud | Description | |:--------|:----------------------|:-----------------|:------| | [CMS.INCRBY]({{< relref "commands/cms.incrby" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Increases item counts. | | [CMS.INFO]({{< relref "commands/cms.info" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns width, depth, and total count of the sketch. | | [CMS.INITBYDIM]({{< relref "commands/cms.initbydim" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Initializes a count-min sketch to the specified dimensions (width and depth). | | [CMS.INITBYPROB]({{< relref "commands/cms.initbyprob" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Initializes a count-min sketch to allow the specified overestimation percent for the item count and the probability of overestimation. | | [CMS.MERGE]({{< relref "commands/cms.merge" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Merges several sketches into one sketch. | | [CMS.QUERY]({{< relref "commands/cms.query" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns the count for one or more items in a sketch. | ## Top-k commands | Command | Redis
Software | Redis
Cloud | Description | |:--------|:----------------------|:-----------------|:------| | [TOPK.ADD]({{< relref "commands/topk.add" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Adds an item to the data structure. | | [TOPK.COUNT]({{< relref "commands/topk.count" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns probable item counts. | | [TOPK.INCRBY]({{< relref "commands/topk.incrby" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Increases the score of an item by the specified number. | | [TOPK.INFO]({{< relref "commands/topk.info" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns the number of required items (k), width, depth, and decay values. | | [TOPK.LIST]({{< relref "commands/topk.list" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns the keys of items in the top-k list. Optionally returns their item counts. | | [TOPK.QUERY]({{< relref "commands/topk.query" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Checks whether an item is one of top-k items. | | [TOPK.RESERVE]({{< relref "commands/topk.reserve" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Initializes a top-k with the specified number of top occurring items to keep, width, depth, and decay. | ## T-digest sketch commands | Command | Redis
Software | Redis
Cloud | Description | |:--------|:----------------------|:-----------------|:------| | [TDIGEST.ADD]({{< relref "commands/tdigest.add" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Adds one or more samples to a t-digest sketch. | | [TDIGEST.CDF]({{< relref "commands/tdigest.cdf" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Estimates the fraction of all observations which are less than or equal to the specified value. | | [TDIGEST.CREATE]({{< relref "commands/tdigest.create" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Allocates memory and initializes a t-digest sketch. | | [TDIGEST.INFO]({{< relref "commands/tdigest.info" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns information about the t-digest sketch. | | [TDIGEST.MAX]({{< relref "commands/tdigest.max" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns the maximum value from the sketch. | | [TDIGEST.MERGE]({{< relref "commands/tdigest.merge" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Copies values from one sketch to another. | | [TDIGEST.MIN]({{< relref "commands/tdigest.min" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Returns the minimum value from the sketch. | | [TDIGEST.QUANTILE]({{< relref "commands/tdigest.quantile" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Estimates one or more cutoffs. | | [TDIGEST.RESET]({{< relref "commands/tdigest.reset" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Resets the sketch and reinitializes it. | | [TDIGEST.TRIMMED_MEAN]({{< relref "commands/tdigest.trimmed_mean" >}}) | ✅ Supported

| ✅ Flexible & Annual
✅ Free & Fixed | Estimates the mean value from the sketch, excluding values outside the specified range. |