CF.INSERT
CF.INSERT key [CAPACITY capacity] [NOCREATE] ITEMS item [item ...]
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.RESERVE for more information on cuckoo filter capacities.CAPACITY.ITEMS keyword must precede the list of items to add.Integer reply - "1" if executed correctly, or Error reply otherwise.
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
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/cf.insert/