CF.DEL key item
@cuckoo,
@write,
@slow,
Deletes an item once from the filter.
If the item exists only once, it will be removed from the filter. If the item was added multiple times, it will still be present.
keyis key name for a cuckoo filter.
itemis an item to delete.
O(n), where n is the number of sub-filters. Both alternative locations are
checked on all sub-filters.
redis> CF.INSERT cf ITEMS item1 item2 item2
1) (integer) 1
2) (integer) 1
3) (integer) 1
redis> CF.DEL cf item1
(integer) 1
redis> CF.DEL cf item1
(integer) 0
redis> CF.DEL cf item2
(integer) 1
redis> CF.DEL cf item2
(integer) 1
redis> CF.DEL cf item2
(integer) 0| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
One of the following:
1 for successfully deleting an item, or 0 if no such item was found in the filter.