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) |
RFuture<Long> |
deleteAsync(String... keys) |
<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)
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 bucketspublic RFuture<Long> deleteAsync(String... keys)
deleteAsync
in interface RBucketsAsync
Copyright © 2014–2020 Redisson. All rights reserved.