Package org.redisson.api
Interface RMultimapCache<K,V>
- Type Parameters:
K- key typeV- value type
- All Superinterfaces:
RExpirable,RExpirableAsync,RMultimap<K,,V> RMultimapAsync<K,,V> RMultimapCacheAsync<K,,V> RObject,RObjectAsync
- All Known Subinterfaces:
RListMultimapCache<K,,V> RSetMultimapCache<K,V>
- All Known Implementing Classes:
RedissonListMultimapCache,RedissonSetMultimapCache
Base Multimap interface. Allows to map multiple values per key and define expiration per key.
- Author:
- Nikita Koksharov
-
Method Summary
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLiveMethods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsyncMethods inherited from interface org.redisson.api.RMultimap
clear, containsEntry, containsKey, containsValue, entries, fastRemove, fastRemoveValue, get, getAll, getCountDownLatch, getFairLock, getLock, getPermitExpirableSemaphore, getReadWriteLock, getSemaphore, isEmpty, keySet, keySize, put, putAll, readAllKeySet, remove, removeAll, replaceValues, size, valuesMethods inherited from interface org.redisson.api.RMultimapAsync
containsEntryAsync, containsKeyAsync, containsValueAsync, fastRemoveAsync, fastRemoveValueAsync, getAllAsync, keySizeAsync, putAllAsync, putAsync, readAllKeySetAsync, removeAllAsync, removeAsync, replaceValuesAsync, sizeAsyncMethods inherited from interface org.redisson.api.RMultimapCacheAsync
expireKeyAsyncMethods inherited from interface org.redisson.api.RObject
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkMethods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Method Details
-
expireKey
Set a timeout for key. After the timeout has expired, the key and its values will automatically be deleted.- Parameters:
key- - map keytimeToLive- - timeout before key will be deletedtimeUnit- - timeout time unit- Returns:
trueif key exists and the timeout was set andfalseif key not exists
-