{
  "schema_version": 2,
  "id": "operate/oss_and_stack/stack-with-enterprise/bloom/commands",
  "title": "Probabilistic data structure commands",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/bloom/commands/",
  "summary": "Lists probabilistic data structure commands and provides links to the command reference pages.",
  "tags": [
    "docs",
    "operate",
    "stack"
  ],
  "last_updated": "2026-09-22T10:15:10+01:00",
  "page_type": "content",
  "content_hash": "93bc9bcbff68561acc5599fed212334f1b80a21d685244d708fe074d36de91f6",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "The following tables list probabilistic data structure commands. See the command links for more information about each command's syntax, arguments, and examples."
    },
    {
      "id": "bloom-filter-commands",
      "title": "Bloom filter commands",
      "role": "content",
      "text": "| Command | Redis<br />Software | Redis<br />Cloud | Description |\n|:--------|:----------------------|:-----------------|:------|\n| [BF.ADD](https://redis.io/docs/latest/commands/bf.add) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\"><nobr>&#x2705; Flexible & Annual</nobr></span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds an item to the filter. |\n| [BF.EXISTS](https://redis.io/docs/latest/commands/bf.exists) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Checks if an item exists in the filter. |\n| [BF.INFO](https://redis.io/docs/latest/commands/bf.info) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns information about a Bloom filter. |\n| [BF.INSERT](https://redis.io/docs/latest/commands/bf.insert) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds multiple items to a filter. If the key does not exist, it creates a new filter. |\n| [BF.LOADCHUNK](https://redis.io/docs/latest/commands/bf.loadchunk) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Restores a Bloom filter previously saved with [BF.SCANDUMP](https://redis.io/docs/latest/commands/bf.scandump). |\n| [BF.MADD](https://redis.io/docs/latest/commands/bf.madd) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds multiple items to the filter. |\n| [BF.MEXISTS](https://redis.io/docs/latest/commands/bf.mexists) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | For multiple items, checks if each item exists in the filter. |\n| [BF.RESERVE](https://redis.io/docs/latest/commands/bf.reserve) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Creates a Bloom filter. Sets the false positive rate and capacity. |\n| [BF.SCANDUMP](https://redis.io/docs/latest/commands/bf.scandump) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Starts an incremental save of a Bloom filter. |"
    },
    {
      "id": "cuckoo-filter-commands",
      "title": "Cuckoo filter commands",
      "role": "content",
      "text": "| Command | Redis<br />Software | Redis<br />Cloud | Description |\n|:--------|:----------------------|:-----------------|:------|\n| [CF.ADD](https://redis.io/docs/latest/commands/cf.add) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\"><nobr>&#x2705; Flexible & Annual</nobr></span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds an item to a filter. |\n| [CF.ADDNX](https://redis.io/docs/latest/commands/cf.addnx) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds an item to a filter only if the item does not already exist. |\n| [CF.COUNT](https://redis.io/docs/latest/commands/cf.count) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns the probable number of times an item occurs in the filter. |\n| [CF.DEL](https://redis.io/docs/latest/commands/cf.del) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Removes one instance of an item from the filter. |\n| [CF.EXISTS](https://redis.io/docs/latest/commands/cf.exists) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Checks if an item exists in the filter. |\n| [CF.INFO](https://redis.io/docs/latest/commands/cf.info) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns information about a cuckoo filter. |\n| [CF.INSERT](https://redis.io/docs/latest/commands/cf.insert) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds multiple items to a filter. Optionally sets the capacity if the filter does not already exist. |\n| [CF.INSERTNX](https://redis.io/docs/latest/commands/cf.insertnx) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds multiple items to a filter if they do not already exist. Optionally sets the capacity if the filter does not already exist. |\n| [CF.LOADCHUNK](https://redis.io/docs/latest/commands/cf.loadchunk) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Restores a cuckoo filter previously saved with [CF.SCANDUMP](https://redis.io/docs/latest/commands/cf.scandump). |\n| [CF.MEXISTS](https://redis.io/docs/latest/commands/cf.mexists) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | For multiple items, checks if each item exists in the filter. |\n| [CF.RESERVE](https://redis.io/docs/latest/commands/cf.reserve) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Creates a cuckoo filter and sets its capacity. |\n| [CF.SCANDUMP](https://redis.io/docs/latest/commands/cf.scandump) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Starts an incremental save of a cuckoo filter. |"
    },
    {
      "id": "count-min-sketch-commands",
      "title": "Count-min sketch commands",
      "role": "content",
      "text": "| Command | Redis<br />Software | Redis<br />Cloud | Description |\n|:--------|:----------------------|:-----------------|:------|\n| [CMS.INCRBY](https://redis.io/docs/latest/commands/cms.incrby) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\"><nobr>&#x2705; Flexible & Annual</nobr></span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Increases item counts. |\n| [CMS.INFO](https://redis.io/docs/latest/commands/cms.info) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns width, depth, and total count of the sketch. |\n| [CMS.INITBYDIM](https://redis.io/docs/latest/commands/cms.initbydim) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Initializes a count-min sketch to the specified dimensions (width and depth). |\n| [CMS.INITBYPROB](https://redis.io/docs/latest/commands/cms.initbyprob) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Initializes a count-min sketch to allow the specified overestimation percent for the item count and the probability of overestimation. |\n| [CMS.MERGE](https://redis.io/docs/latest/commands/cms.merge) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Merges several sketches into one sketch. |\n| [CMS.QUERY](https://redis.io/docs/latest/commands/cms.query) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns the count for one or more items in a sketch. |"
    },
    {
      "id": "top-k-commands",
      "title": "Top-k commands",
      "role": "content",
      "text": "| Command | Redis<br />Software | Redis<br />Cloud | Description |\n|:--------|:----------------------|:-----------------|:------|\n| [TOPK.ADD](https://redis.io/docs/latest/commands/topk.add) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\"><nobr>&#x2705; Flexible & Annual</nobr></span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds an item to the data structure. |\n| [TOPK.COUNT](https://redis.io/docs/latest/commands/topk.count) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns probable item counts. |\n| [TOPK.INCRBY](https://redis.io/docs/latest/commands/topk.incrby) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Increases the score of an item by the specified number. |\n| [TOPK.INFO](https://redis.io/docs/latest/commands/topk.info) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns the number of required items (k), width, depth, and decay values. |\n| [TOPK.LIST](https://redis.io/docs/latest/commands/topk.list) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns the keys of items in the top-k list. Optionally returns their item counts. |\n| [TOPK.QUERY](https://redis.io/docs/latest/commands/topk.query) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Checks whether an item is one of top-k items. |\n| [TOPK.RESERVE](https://redis.io/docs/latest/commands/topk.reserve) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Initializes a top-k with the specified number of top occurring items to keep, width, depth, and decay. |"
    },
    {
      "id": "t-digest-sketch-commands",
      "title": "T-digest sketch commands",
      "role": "content",
      "text": "| Command | Redis<br />Software | Redis<br />Cloud | Description |\n|:--------|:----------------------|:-----------------|:------|\n| [TDIGEST.ADD](https://redis.io/docs/latest/commands/tdigest.add) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\"><nobr>&#x2705; Flexible & Annual</nobr></span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Adds one or more samples to a t-digest sketch. |\n| [TDIGEST.CDF](https://redis.io/docs/latest/commands/tdigest.cdf) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Estimates the fraction of all observations which are less than or equal to the specified value. |\n| [TDIGEST.CREATE](https://redis.io/docs/latest/commands/tdigest.create) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Allocates memory and initializes a t-digest sketch. |\n| [TDIGEST.INFO](https://redis.io/docs/latest/commands/tdigest.info) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns information about the t-digest sketch. |\n| [TDIGEST.MAX](https://redis.io/docs/latest/commands/tdigest.max) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns the maximum value from the sketch. |\n| [TDIGEST.MERGE](https://redis.io/docs/latest/commands/tdigest.merge) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Copies values from one sketch to another. |\n| [TDIGEST.MIN](https://redis.io/docs/latest/commands/tdigest.min) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Returns the minimum value from the sketch. |\n| [TDIGEST.QUANTILE](https://redis.io/docs/latest/commands/tdigest.quantile) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Estimates one or more cutoffs. |\n| [TDIGEST.RESET](https://redis.io/docs/latest/commands/tdigest.reset) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Resets the sketch and reinitializes it. |\n| [TDIGEST.TRIMMED_MEAN](https://redis.io/docs/latest/commands/tdigest.trimmed_mean) | <span title=\"Supported\">&#x2705; Supported</span><br /><span><br /></span> | <span title=\"Supported\">&#x2705; Flexible & Annual</span><br /><span title=\"Supported\">&#x2705; Free & Fixed</nobr></span> | Estimates the mean value from the sketch, excluding values outside the specified range. |"
    }
  ],
  "examples": []
}
