public interface RedisMap<K,V> extends RedisStore, ConcurrentMap<K,V>
Modifier and Type | Method and Description |
---|---|
Double |
increment(K key,
double delta)
Increment
value of the hash key by the given delta . |
Long |
increment(K key,
long delta)
Increment
value of the hash key by the given delta . |
Map.Entry<K,V> |
randomEntry()
Get a random entry from the hash.
|
K |
randomKey()
Get a random key from the hash.
|
Iterator<Map.Entry<K,V>> |
scan() |
getOperations
expire, expire, expireAt, expireAt, getExpire, getKey, getType, persist, rename
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Long increment(K key, long delta)
value
of the hash key
by the given delta
.key
- must not be null.delta
- Double increment(K key, double delta)
value
of the hash key
by the given delta
.key
- must not be null.delta
- K randomKey()
@Nullable Map.Entry<K,V> randomEntry()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.