CF.EXISTS

CF.EXISTS key item
Available in:
Redis Open Source / Bloom 1.0.0
Time complexity:
O(k), where k is the number of sub-filters
ACL categories:
@cuckoo, @read, @slow,
Compatibility:
Redis Software and Redis Cloud compatibility

Determines whether a given item was added to a cuckoo filter.

This command is similar to CF.MEXISTS, except that only one item can be checked.

Required arguments

key

is key name for a cuckoo filter.

item

is an item to check.

Examples

redis> CF.ADD cf item1
(integer) 1
redis> CF.EXISTS cf item1
(integer) 1
redis> CF.EXISTS cf item2
(integer) 0

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Supported
✅ Flexible & Annual
✅ Free & Fixed

Return information

One of the following:

  • Integer reply, where a value of 1 means the item was probably already added to the filter. A value of 0 means the item was definitely not added, key does not exist, or key contains a value of the wrong type.
  • Simple error reply if invalid arguments are passed.
RATE THIS PAGE
Back to top ↑