public interface IHashCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
Long |
hDel(K key,
Object... hashKeys)
Delete given hash
hashKeys. |
Boolean |
hExists(K key,
Object hashKey)
Determine if given hash
hashKey exists. |
<T> T |
hGet(K key,
Object hashKey)
Get value for given
hashKey from hash at key. |
<HK,HV> Map<HK,HV> |
hGetAll(K key)
Get entire hash stored at
key. |
<HK> Set<HK> |
hKeys(K key)
Get key set (fields) of hash at
key. |
Long |
hLen(K key)
Get size of hash at
key. |
<T> List<T> |
hMget(K key,
Collection<Object> hashKeys)
Get values for given
hashKeys from hash at key. |
void |
hmset(K key,
Map<Object,Object> m)
Set multiple hash fields to multiple values using data provided in
m. |
void |
hSet(K key,
Object hashKey,
Object value)
Set the
value of a hash hashKey. |
<HV> List<HV> |
hVals(K key)
Get entry set (values) of hash at
key. |
void hSet(K key, Object hashKey, Object value)
value of a hash hashKey.key - must not be null.hashKey - must not be null.value - void hmset(K key, Map<Object,Object> m)
m.key - must not be null.m - must not be null.@Nullable <T> T hGet(K key, Object hashKey)
hashKey from hash at key.key - must not be null.hashKey - must not be null.<T> List<T> hMget(K key, Collection<Object> hashKeys)
hashKeys from hash at key.key - must not be null.hashKeys - must not be null.Long hDel(K key, Object... hashKeys)
hashKeys.key - must not be null.hashKeys - must not be null.Boolean hExists(K key, Object hashKey)
hashKey exists.key - must not be null.hashKey - must not be null.<HK,HV> Map<HK,HV> hGetAll(K key)
key.key - must not be null.<HV> List<HV> hVals(K key)
key.key - must not be null.<HK> Set<HK> hKeys(K key)
key.key - must not be null.@Nullable Long hLen(K key)
key.key - must not be null.Copyright © 2021. All rights reserved.