V
- - the type of objectRBucketAsync<V>
, RExpirable
, RExpirableAsync
, RObject
, RObjectAsync
RBinaryStream
RedissonBinaryStream
, RedissonBucket
, RedissonTransactionalBucket
public interface RBucket<V> extends RExpirable, RBucketAsync<V>
Modifier and Type | Method | Description |
---|---|---|
boolean |
compareAndSet(V expect,
V update) |
|
V |
get() |
|
V |
getAndDelete() |
|
V |
getAndSet(V newValue) |
|
void |
set(V value) |
|
void |
set(V value,
long timeToLive,
TimeUnit timeUnit) |
|
long |
size() |
Returns size of object in bytes
|
boolean |
trySet(V value) |
|
boolean |
trySet(V value,
long timeToLive,
TimeUnit timeUnit) |
compareAndSetAsync, getAndDeleteAsync, getAndSetAsync, getAsync, setAsync, setAsync, sizeAsync, trySetAsync, trySetAsync
clearExpire, expire, expireAt, expireAt, remainTimeToLive
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
Copyright © 2014–2018 The Redisson Project. All rights reserved.