Available in: Redis Stack
Time complexity: O(n * (k + i)), where n is the number of items, k is the number of sub-filters and i is maxIterations
Adds one or more items to a cuckoo filter, allowing the filter to be created with a custom capacity if it does not exist yet.
These commands offers more flexibility over the
ADD command, at
the cost of more verbosity.
CF.RESERVEfor more information on cuckoo filter capacities.
ITEMSkeyword must precede the list of items to add.
redis> CF.INSERT cf CAPACITY 1000 ITEMS item1 item2 1) (integer) 1 2) (integer) 1
redis> CF.INSERT cf1 CAPACITY 1000 NOCREATE ITEMS item1 item2 (error) ERR not found