Back to Redis

CF.INFO

content/commands/cf.info.md

latest2.0 KB
Original Source

Returns information about a cuckoo filter.

Required arguments

<details open><summary><code>key</code></summary>

is key name for a cuckoo filter.

</details>

Examples

{{< highlight bash >}} redis> CF.INFO cf

  1. Size
  2. (integer) 1080
  3. Number of buckets
  4. (integer) 512
  5. Number of filter
  6. (integer) 1
  7. Number of items inserted
  8. (integer) 0
  9. Number of items deleted
  10. (integer) 0
  11. Bucket size
  12. (integer) 2
  13. Expansion rate
  14. (integer) 1
  15. Max iteration
  16. (integer) 20 {{< / highlight >}}

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |

Return information

One of the following:

{{< multitabs id="cf-info-return-info" tab1="RESP2" tab2="RESP3" >}}

  • [Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}}) with argument name ([Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}})) and value ([Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})) pairs.
  • [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) if invalid arguments are passed, key does not exist, or key is not of the correct type.

-tab-sep-

  • [Map reply]({{< relref "/develop/reference/protocol-spec#maps" >}}) with argument name ([Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}})) and value ([Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})) pairs.
  • [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) if invalid arguments are passed, key does not exist, or key is not of the correct type.

{{< /multitabs >}}