public interface CuckooFilterCommands
Modifier and Type | Method and Description |
---|---|
boolean |
cfAdd(String key,
String item)
CF.ADD Adds an item to the cuckoo filter, creating the filter if it does not
exist
|
boolean |
cfAddNx(String key,
String item)
CF.ADDNX Adds an item to the cuckoo filter, only if it does not exist yet
|
long |
cfCount(String key,
String item)
CF.COUNT Returns the number of times an item may be in the filter.
|
boolean |
cfDel(String key,
String item)
CF.DEL Deletes an item once from the filter.
|
boolean |
cfExists(String key,
String item)
CF.EXISTS Check if an item exists in a Cuckoo Filter
|
Map<String,Object> |
cfInfo(String key)
CF.INFO Return information about filter
|
List<Boolean> |
cfInsert(String key,
CFInsertParams insertParams,
String... items)
CF.INSERT Adds one or more items to a cuckoo filter, using the passed
options
|
List<Boolean> |
cfInsert(String key,
String... items)
CF.INSERT Adds one or more items to a cuckoo filter, creating it if it does
not exist yet.
|
List<Boolean> |
cfInsertNx(String key,
CFInsertParams insertParams,
String... items)
CF.INSERTNX Adds one or more items to a cuckoo filter, using the passed
options
|
List<Boolean> |
cfInsertNx(String key,
String... items)
CF.INSERTNX Adds one or more items to a cuckoo filter, only if it does not
exist yet
|
List<Boolean> |
cfMExists(String key,
String... items)
CF.MEXISTS {key} {item ...} |
String |
cfReserve(String key,
long capacity)
CF.RESERVE Creates a Cuckoo Filter under key with the given parameters
|
String |
cfReserve(String key,
long capacity,
CFReserveParams reserveParams)
CF.RESERVE Creates a Cuckoo Filter under key with the given parameters
|
String cfReserve(String key, long capacity)
key
- The name of the filtercapacity
- String cfReserve(String key, long capacity, CFReserveParams reserveParams)
key
- The name of the filtercapacity
- reserveParams
- An instance of CFReserveParams containing the optionsboolean cfAdd(String key, String item)
key
- The name of the filteritem
- The item to addboolean cfAddNx(String key, String item)
key
- The name of the filteritem
- The item to addList<Boolean> cfInsert(String key, String... items)
key
- The name of the filteritems
- One or more items to addList<Boolean> cfInsert(String key, CFInsertParams insertParams, String... items)
key
- The name of the filterinsertParams
- An instance of CFInsertParams containing the optionsitems
- One or more items to addList<Boolean> cfInsertNx(String key, String... items)
key
- The name of the filteritems
- One or more items to addList<Boolean> cfInsertNx(String key, CFInsertParams insertParams, String... items)
key
- The name of the filterinsertParams
- An instance of CFInsertParams containing the options
(CAPACITY/NOCREATE)items
- One or more items to addboolean cfExists(String key, String item)
key
- The name of the filteritem
- The item to check forList<Boolean> cfMExists(String key, String... items)
CF.MEXISTS {key} {item ...}
key
- The name of the filteritems
- Items to check for (non empty sequence)boolean cfDel(String key, String item)
key
- The name of the filteritem
- The item to delete from the filterlong cfCount(String key, String item)
key
- The name of the filteritem
- The item to countCopyright © 2022. All rights reserved.