public interface RMultimapCache<K,V> extends RMultimap<K,V>, RMultimapCacheAsync<K,V>
Modifier and Type | Method and Description |
---|---|
boolean |
expireKey(K key,
long timeToLive,
TimeUnit timeUnit)
Set a timeout for key.
|
clear, containsEntry, containsKey, containsValue, entries, fastRemove, get, getAll, getLock, getReadWriteLock, isEmpty, keySet, keySize, put, putAll, readAllKeySet, remove, removeAll, replaceValues, size, values
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlink
expireKeyAsync
containsEntryAsync, containsKeyAsync, containsValueAsync, fastRemoveAsync, getAllAsync, keySizeAsync, putAllAsync, putAsync, readAllKeySetAsync, removeAllAsync, removeAsync, replaceValuesAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsync
boolean expireKey(K key, long timeToLive, TimeUnit timeUnit)
key
- - map keytimeToLive
- - timeout before key will be deletedtimeUnit
- - timeout time unittrue
if key exists and the timeout was set and false
if key not existsCopyright © 2014–2017 The Redisson Project. All rights reserved.