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)
RBuckets
public boolean trySet(Map<String,?> buckets)
RBuckets
public void set(Map<String,?> buckets)
RBuckets
public <V> RFuture<Map<String,V>> getAsync(String... keys)
RBucketsAsync
getAsync
in interface RBucketsAsync
V
- type of valuekeys
- - keyspublic RFuture<Boolean> trySetAsync(Map<String,?> buckets)
RBucketsAsync
trySetAsync
in interface RBucketsAsync
buckets
- - map of bucketstrue
if object has been set overwise false
public RFuture<Void> setAsync(Map<String,?> buckets)
RBucketsAsync
setAsync
in interface RBucketsAsync
buckets
- - map of bucketsCopyright © 2014–2018 The Redisson Project. All rights reserved.