public interface RKeysAsync
Modifier and Type | Method and Description |
---|---|
RFuture<Long> |
countAsync()
Returns the number of keys in the currently-selected database in async mode
|
RFuture<Long> |
deleteAsync(String... keys)
Delete multiple objects by name
|
RFuture<Long> |
deleteByPatternAsync(String pattern)
Delete multiple objects by a key pattern.
|
RFuture<Collection<String>> |
findKeysByPatternAsync(String pattern)
Find keys by key search pattern in async mode
Supported glob-style patterns:
h?
|
RFuture<Void> |
flushallAsync()
Delete all keys of all existing databases
|
RFuture<Void> |
flushdbAsync()
Delete all keys of currently selected database
|
RFuture<Integer> |
getSlotAsync(String key)
Get hash slot identifier for key in async mode.
|
RFuture<RType> |
getTypeAsync(String key)
Get Redis object type by key
|
RFuture<Long> |
isExistsAsync(String... names)
Checks if provided keys exist
|
RFuture<String> |
randomKeyAsync()
Get random key in async mode
|
RFuture<Long> isExistsAsync(String... names)
names
- of keysRFuture<RType> getTypeAsync(String key)
key
- - name of keyRFuture<Integer> getSlotAsync(String key)
key
- - name of keyRFuture<Collection<String>> findKeysByPatternAsync(String pattern)
pattern
- - match patternRFuture<Long> deleteByPatternAsync(String pattern)
Method executes in NON atomic way in cluster mode due to lua script limitations.
Supported glob-style patterns: h?llo subscribes to hello, hallo and hxllo h*llo subscribes to hllo and heeeello h[ae]llo subscribes to hello and hallo, but not hillo
pattern
- - match patternRFuture<Long> deleteAsync(String... keys)
keys
- - object namesRFuture<Long> countAsync()
RFuture<Void> flushdbAsync()
Copyright © 2014–2016 The Redisson Project. All rights reserved.