Interface RedisMap<K,V>
- All Superinterfaces:
BoundKeyOperations<String>,ConcurrentMap<K,,V> Map<K,,V> RedisStore
- All Known Implementing Classes:
DefaultRedisMap,RedisProperties
Map view of a Redis hash.
- Author:
- Costin Leau, Christoph Strobl
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionIncrementvalueof the hashkeyby the givendelta.Incrementvalueof the hashkeyby the givendelta.Get a random entry from the hash.Get a random key from the hash.scan()Methods inherited from interface org.springframework.data.redis.core.BoundKeyOperations
expire, expire, expireAt, expireAt, getExpire, getKey, getType, persist, renameMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods inherited from interface org.springframework.data.redis.support.collections.RedisStore
getOperations
-
Method Details
-
increment
Incrementvalueof the hashkeyby the givendelta.- Parameters:
key- must not be null.delta-- Returns:
- null if hash does not exist.
- Since:
- 1.0
-
increment
Incrementvalueof the hashkeyby the givendelta.- Parameters:
key- must not be null.delta-- Returns:
- null if hash does not exist.
- Since:
- 1.1
-
randomKey
K randomKey()Get a random key from the hash.- Returns:
- null if the hash does not exist.
- Since:
- 2.6
-
randomEntry
Get a random entry from the hash.- Returns:
- null if the hash does not exist.
- Since:
- 2.6
-
scan
- Returns:
- Since:
- 1.4
-