K - Key type.V - Value type.public interface NodeSelectionCuckooFilterAsyncCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
AsyncExecutions<Boolean> |
cfAdd(K key,
V value)
Add an item to the Cuckoo Filter.
|
AsyncExecutions<Boolean> |
cfAddNx(K key,
V value)
Add an item to the Cuckoo Filter only if the item does not already exist.
|
AsyncExecutions<Long> |
cfCount(K key,
V value)
Return the number of times an item may be in the Cuckoo Filter.
|
AsyncExecutions<Boolean> |
cfDel(K key,
V value)
Delete an item from the Cuckoo Filter.
|
AsyncExecutions<Boolean> |
cfExists(K key,
V value)
Check if an item exists in the Cuckoo Filter.
|
AsyncExecutions<CfInfoValue> |
cfInfo(K key)
Get information about the Cuckoo Filter.
|
AsyncExecutions<List<Boolean>> |
cfInsert(K key,
CfInsertArgs args,
V... values)
Add one or more items to a Cuckoo Filter.
|
AsyncExecutions<List<Boolean>> |
cfInsert(K key,
CfInsertArgs args,
V value)
Add one or more items to a Cuckoo Filter.
|
AsyncExecutions<List<Boolean>> |
cfInsert(K key,
V... values)
Add one or more items to a Cuckoo Filter.
|
AsyncExecutions<List<Boolean>> |
cfInsert(K key,
V value)
Add one or more items to a Cuckoo Filter.
|
AsyncExecutions<List<Boolean>> |
cfInsertNx(K key,
CfInsertArgs args,
V... values)
Add one or more items to a Cuckoo Filter only if the items do not already exist.
|
AsyncExecutions<List<Boolean>> |
cfInsertNx(K key,
CfInsertArgs args,
V value)
Add one or more items to a Cuckoo Filter only if the items do not already exist.
|
AsyncExecutions<List<Boolean>> |
cfInsertNx(K key,
V... values)
Add one or more items to a Cuckoo Filter only if the items do not already exist.
|
AsyncExecutions<List<Boolean>> |
cfInsertNx(K key,
V value)
Add one or more items to a Cuckoo Filter only if the items do not already exist.
|
AsyncExecutions<String> |
cfLoadChunk(K key,
long cursor,
byte[] data)
Restores a Cuckoo filter previously saved using CF.SCANDUMP.
|
AsyncExecutions<List<Boolean>> |
cfMExists(K key,
V... values)
Check if one or more items exist in the Cuckoo Filter.
|
AsyncExecutions<String> |
cfReserve(K key,
long capacity)
Creates an empty Cuckoo filter with a single sub-filter for the initial specified capacity.
|
AsyncExecutions<String> |
cfReserve(K key,
long capacity,
CfReserveArgs args)
Creates an empty Cuckoo filter with a single sub-filter for the initial specified capacity.
|
AsyncExecutions<ScanDumpValue> |
cfScanDump(K key,
long cursor)
Begins an incremental save of the Cuckoo filter.
|
AsyncExecutions<String> cfReserve(K key, long capacity)
key - the key.capacity - the capacity.OK if CF.RESERVE was executed correctly.AsyncExecutions<String> cfReserve(K key, long capacity, CfReserveArgs args)
key - the key.capacity - the capacity.args - the reserve arguments.OK if CF.RESERVE was executed correctly.AsyncExecutions<Boolean> cfAdd(K key, V value)
key - the key.value - the value.true if the item was added.RedisCommandExecutionException - if the filter is full and cannot expand.AsyncExecutions<Boolean> cfAddNx(K key, V value)
key - the key.value - the value.true if the item was added, false if it was already in the filter.AsyncExecutions<List<Boolean>> cfInsert(K key, V... values)
key - the key.values - the values.true if the item was added, false if the filter is full.
CF.INSERT does not report already-existing items.AsyncExecutions<List<Boolean>> cfInsert(K key, V value)
key - the key.value - the value.true if the item was added, false if the filter is full.
CF.INSERT does not report already-existing items.AsyncExecutions<List<Boolean>> cfInsert(K key, CfInsertArgs args, V... values)
key - the key.args - the insert arguments.values - the values.true if the item was added, false if the filter is full.
CF.INSERT does not report already-existing items.AsyncExecutions<List<Boolean>> cfInsert(K key, CfInsertArgs args, V value)
key - the key.args - the insert arguments.value - the value.true if the item was added, false if the filter is full.
CF.INSERT does not report already-existing items.AsyncExecutions<List<Boolean>> cfInsertNx(K key, V... values)
key - the key.values - the values.true if the item was added (server reply 1);
false if the item already exists in the filter (server reply 0); null if the item could
not be added because the filter is full (server reply -1).AsyncExecutions<List<Boolean>> cfInsertNx(K key, V value)
key - the key.value - the value.true if the item was added (server reply 1);
false if the item already exists in the filter (server reply 0); null if the item could
not be added because the filter is full (server reply -1).AsyncExecutions<List<Boolean>> cfInsertNx(K key, CfInsertArgs args, V... values)
key - the key.args - the insert arguments.values - the values.true if the item was added (server reply 1);
false if the item already exists in the filter (server reply 0); null if the item could
not be added because the filter is full (server reply -1).AsyncExecutions<List<Boolean>> cfInsertNx(K key, CfInsertArgs args, V value)
key - the key.args - the insert arguments.value - the value.true if the item was added (server reply 1);
false if the item already exists in the filter (server reply 0); null if the item could
not be added because the filter is full (server reply -1).AsyncExecutions<Boolean> cfExists(K key, V value)
key - the key.value - the value.true if the item may exist in the filter, false if it definitely does not.AsyncExecutions<List<Boolean>> cfMExists(K key, V... values)
key - the key.values - the values.true or false where true means that, with high probability, the
item was already added to the filter, and false means that the item was definitely not added to the
filter.AsyncExecutions<Boolean> cfDel(K key, V value)
Warning: Deleting an item that was not previously added to the filter may cause false negatives for items that are actually present. Only delete items that have been previously added.
key - the key.value - the value.true if the item was deleted, false if the item was not found.AsyncExecutions<Long> cfCount(K key, V value)
key - the key.value - the value.AsyncExecutions<ScanDumpValue> cfScanDump(K key, long cursor)
key - the key.cursor - the cursor.AsyncExecutions<String> cfLoadChunk(K key, long cursor, byte[] data)
key - the key.cursor - the cursor.data - the data.OK if CF.LOADCHUNK was executed correctly.AsyncExecutions<CfInfoValue> cfInfo(K key)
key - the key.Copyright © 2026 lettuce.io. All rights reserved.