public class RedissonBuckets extends Object implements RBuckets
| Modifier and Type | Field and Description |
|---|---|
protected Codec |
codec |
protected CommandAsyncExecutor |
commandExecutor |
| Constructor and Description |
|---|
RedissonBuckets(Codec codec,
CommandAsyncExecutor commandExecutor) |
RedissonBuckets(CommandAsyncExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
long |
delete(String... keys)
Delete multiple objects by name
|
RFuture<Long> |
deleteAsync(String... keys)
Delete multiple objects by name
|
<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.
|
protected final Codec codec
protected final CommandAsyncExecutor commandExecutor
public RedissonBuckets(CommandAsyncExecutor commandExecutor)
public RedissonBuckets(Codec codec, CommandAsyncExecutor 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 otherwise falsepublic RFuture<Void> setAsync(Map<String,?> buckets)
RBucketsAsyncsetAsync in interface RBucketsAsyncbuckets - - map of bucketspublic RFuture<Long> deleteAsync(String... keys)
RBucketsAsyncdeleteAsync in interface RBucketsAsynckeys - - object namesCopyright © 2014–2019 Redisson. All rights reserved.