public class RedissonBuckets extends Object implements RBuckets
| 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) |
<V> Map<String,V> |
get(String... keys)
Returns Redis object mapped by key.
|
<V> RFuture<Map<String,V>> |
getAsync(String... keys)
Returns Redis object mapped by key.
|
void |
set(Map<String,?> buckets)
Saves objects mapped by Redis key.
|
RFuture<Void> |
setAsync(Map<String,?> buckets)
Saves objects mapped by Redis key.
|
boolean |
trySet(Map<String,?> buckets)
Try to save objects mapped by Redis key.
|
RFuture<Boolean> |
trySetAsync(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> Map<String,V> get(String... keys)
RBucketspublic boolean trySet(Map<String,?> buckets)
RBucketspublic void set(Map<String,?> buckets)
RBucketspublic <V> RFuture<Map<String,V>> getAsync(String... keys)
RBucketsAsyncgetAsync in interface RBucketsAsyncV - type of valuekeys - - keyspublic RFuture<Boolean> trySetAsync(Map<String,?> buckets)
RBucketsAsynctrySetAsync in interface RBucketsAsyncbuckets - - map of bucketstrue if object has been set overwise falsepublic RFuture<Void> setAsync(Map<String,?> buckets)
RBucketsAsyncsetAsync in interface RBucketsAsyncbuckets - - map of bucketsCopyright © 2014–2018 The Redisson Project. All rights reserved.