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 TypeMethodDescriptionIncrementvalue
of the hashkey
by the givendelta
.Incrementvalue
of the hashkey
by 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, rename
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
Methods inherited from interface org.springframework.data.redis.support.collections.RedisStore
getOperations
-
Method Details
-
increment
Incrementvalue
of the hashkey
by the givendelta
.- Parameters:
key
- must not be null.delta
-- Returns:
- null if hash does not exist.
- Since:
- 1.0
-
increment
Incrementvalue
of the hashkey
by 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
-