public interface BoundHashOperations<H,HK,HV> extends BoundKeyOperations<H>
Modifier and Type | Method and Description |
---|---|
Long |
delete(Object... keys)
Delete given hash
keys . |
Map<HK,HV> |
entries()
Get entire hash.
|
HV |
get(Object key)
Get value for given
key from the hash. |
RedisOperations<H,?> |
getOperations() |
Boolean |
hasKey(Object key)
Determine if given hash
key exists. |
Double |
increment(HK key,
double delta)
Increment
value of a hash key by the given delta . |
Long |
increment(HK key,
long delta)
Increment
value of a hash key by the given delta . |
Set<HK> |
keys()
Get key set (fields) of the hash.
|
List<HV> |
multiGet(Collection<HK> keys)
Get values for given
keys from the hash. |
void |
put(HK key,
HV value)
Set the
value of a hash key . |
void |
putAll(Map<? extends HK,? extends HV> m)
Set multiple hash fields to multiple values using data provided in
m . |
Boolean |
putIfAbsent(HK key,
HV value)
Set the
value of a hash key only if key does not exist. |
Cursor<Map.Entry<HK,HV>> |
scan(ScanOptions options)
Use a
Cursor to iterate over entries in the hash. |
Long |
size()
Get size of the hash.
|
List<HV> |
values()
Get entry set (values) of hash.
|
RedisOperations<H,?> getOperations()
Boolean hasKey(Object key)
key
exists.key
- must not be null.Long increment(HK key, long delta)
value
of a hash key
by the given delta
.key
- must not be null.delta
- Double increment(HK key, double delta)
value
of a hash key
by the given delta
.key
- must not be null.delta
- HV get(Object key)
key
from the hash.key
- must not be null.void put(HK key, HV value)
value
of a hash key
.key
- must not be null.value
- Boolean putIfAbsent(HK key, HV value)
value
of a hash key
only if key
does not exist.key
- must not be null.value
- List<HV> multiGet(Collection<HK> keys)
keys
from the hash.keys
- must not be null.void putAll(Map<? extends HK,? extends HV> m)
m
.m
- must not be null.Long size()
Long delete(Object... keys)
keys
.keys
- must not be null.Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.