| Constructor and Description |
|---|
RedissonBuckets(Redisson redisson,
Codec codec,
CommandExecutor commandExecutor) |
RedissonBuckets(Redisson redisson,
CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
<V> List<RBucket<V>> |
find(String pattern)
Returns a list of object holder instances by a key pattern.
|
<V> Map<String,V> |
get(String... keys)
Returns Redis object mapped by key.
|
void |
set(Map<String,?> buckets)
Saves objects mapped by Redis key.
|
boolean |
trySet(Map<String,?> buckets)
Try to save objects mapped by Redis key.
|
public RedissonBuckets(Redisson redisson, CommandExecutor commandExecutor)
public RedissonBuckets(Redisson redisson, Codec codec, CommandExecutor commandExecutor)
public <V> List<RBucket<V>> find(String pattern)
RBucketsReturns a list of object holder instances by a key pattern.
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
h[^e]llo matches hallo, hbllo, ... but not hello
h[a-b]llo matches hallo and hbllo
Use \ to escape special characters if you want to match them verbatim.
public <V> Map<String,V> get(String... keys)
RBucketspublic boolean trySet(Map<String,?> buckets)
RBucketsCopyright © 2014–2017 The Redisson Project. All rights reserved.