public interface RKeys extends RKeysAsync
Modifier and Type | Method and Description |
---|---|
Long |
count()
Returns the number of keys in the currently-selected database
|
long |
delete(String... keys)
Delete multiple objects by name
|
long |
deleteByPattern(String pattern)
Delete multiple objects by a key pattern
Supported glob-style patterns:
h?
|
Collection<String> |
findKeysByPattern(String pattern)
Find keys by key search pattern
Supported glob-style patterns:
h?
|
void |
flushall()
Delete all keys of all existing databases
|
void |
flushdb()
Delete all keys of currently selected database
|
Iterable<String> |
getKeys()
Get all keys using iterator.
|
Iterable<String> |
getKeysByPattern(String pattern)
Get all keys by pattern using iterator.
|
int |
getSlot(String key)
Get hash slot identifier for key.
|
String |
randomKey()
Get random key
|
countAsync, deleteAsync, deleteByPatternAsync, findKeysByPatternAsync, flushallAsync, flushdbAsync, getSlotAsync, randomKeyAsync
int getSlot(String key)
key
- Iterable<String> getKeysByPattern(String pattern)
Iterable<String> getKeys()
String randomKey()
Collection<String> findKeysByPattern(String pattern)
pattern
- long deleteByPattern(String pattern)
pattern
- long delete(String... keys)
keys
- - object namesLong count()
void flushdb()
void flushall()
Copyright © 2014–2016. All rights reserved.