public class RedissonKeys extends Object implements RKeys
Constructor and Description |
---|
RedissonKeys(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
long |
delete(String... keys)
Delete multiple objects by name
|
io.netty.util.concurrent.Future<Long> |
deleteAsync(String... keys)
Delete multiple objects by name in async mode
|
long |
deleteByPattern(String pattern)
Delete multiple objects by a key pattern
Supported glob-style patterns:
h?
|
io.netty.util.concurrent.Future<Long> |
deleteByPatternAsync(String pattern)
Delete multiple objects by a key pattern in async mode
Supported glob-style patterns:
h?
|
Collection<String> |
findKeysByPattern(String pattern)
Find keys by key search pattern
Supported glob-style patterns:
h?
|
io.netty.util.concurrent.Future<Collection<String>> |
findKeysByPatternAsync(String pattern)
Find keys by key search pattern in async mode
Supported glob-style patterns:
h?
|
Iterable<String> |
getKeys()
Get all keys using iterator.
|
Iterable<String> |
getKeysByPattern(String pattern)
Get all keys by pattern using iterator.
|
String |
randomKey()
Get random key
|
io.netty.util.concurrent.Future<String> |
randomKeyAsync()
Get random key in async mode
|
public RedissonKeys(CommandExecutor commandExecutor)
public Iterable<String> getKeysByPattern(String pattern)
RKeys
getKeysByPattern
in interface RKeys
public Iterable<String> getKeys()
RKeys
public io.netty.util.concurrent.Future<String> randomKeyAsync()
RKeysAsync
randomKeyAsync
in interface RKeysAsync
public Collection<String> findKeysByPattern(String pattern)
findKeysByPattern
in interface RKeys
pattern
- public io.netty.util.concurrent.Future<Collection<String>> findKeysByPatternAsync(String pattern)
findKeysByPatternAsync
in interface RKeysAsync
pattern
- public long deleteByPattern(String pattern)
deleteByPattern
in interface RKeys
pattern
- public io.netty.util.concurrent.Future<Long> deleteByPatternAsync(String pattern)
deleteByPatternAsync
in interface RKeysAsync
pattern
- public long delete(String... keys)
public io.netty.util.concurrent.Future<Long> deleteAsync(String... keys)
deleteAsync
in interface RKeysAsync
keys
- - object namesCopyright © 2014–2015. All rights reserved.