RBuckets
, RBucketsAsync
public class RedissonBuckets extends Object implements RBuckets
Constructor | Description |
---|---|
RedissonBuckets(Codec codec,
CommandExecutor commandExecutor) |
|
RedissonBuckets(CommandExecutor commandExecutor) |
Modifier and Type | Method | Description |
---|---|---|
<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(CommandExecutor commandExecutor)
public RedissonBuckets(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 otherwise 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.