K
- key typeV
- value typepublic 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, getCountDownLatch, getFairLock, getLock, getPermitExpirableSemaphore, getReadWriteLock, getSemaphore, isEmpty, keySet, keySize, put, putAll, readAllKeySet, remove, removeAll, replaceValues, size, values
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
expireKeyAsync
containsEntryAsync, containsKeyAsync, containsValueAsync, fastRemoveAsync, getAllAsync, keySizeAsync, putAllAsync, putAsync, readAllKeySetAsync, removeAllAsync, removeAsync, replaceValuesAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, 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–2019 The Redisson Project. All rights reserved.