public interface HashCommands extends RedisCommands
限定符和类型 | 方法和说明 |
---|---|
Long |
hDel(byte[] key,
byte[]... fields)
删除哈希表 key 中的一个或多个指定域
详情说明 http://redisdoc.com/hash/hdel.html
|
Long |
hDel(String key,
String... fields)
删除哈希表 key 中的一个或多个指定域
详情说明 http://redisdoc.com/hash/hdel.html
|
Boolean |
hExists(byte[] key,
byte[] field)
检查给定域 field 是否存在于哈希表 key 当中
详情说明 http://redisdoc.com/hash/hexists.html
|
Boolean |
hExists(String key,
String field)
检查给定域 field 是否存在于哈希表 key 当中
详情说明 http://redisdoc.com/hash/hexists.html
|
byte[] |
hGet(byte[] key,
byte[] field)
获取哈希表中给定域的值
详情说明 http://redisdoc.com/hash/hget.html
|
String |
hGet(String key,
String field)
获取哈希表中给定域的值
详情说明 http://redisdoc.com/hash/hget.html
|
Map<byte[],byte[]> |
hGetAll(byte[] key)
获取哈希表 key 中,所有的域和值
详情说明 http://redisdoc.com/hash/hgetall.html
|
Map<String,String> |
hGetAll(String key)
获取哈希表 key 中,所有的域和值
详情说明 http://redisdoc.com/hash/hgetall.html
|
Long |
hIncrBy(byte[] key,
byte[] field,
long value)
为哈希表 key 中的域 field 的值加上增量 increment
详情说明 http://redisdoc.com/hash/hincrby.html
|
Long |
hIncrBy(String key,
String field,
long value)
为哈希表 key 中的域 field 的值加上增量 increment
详情说明 http://redisdoc.com/hash/hincrby.html
|
Double |
hIncrByFloat(byte[] key,
byte[] field,
double value)
为哈希表 key 中的域 field 加上浮点数增量 increment
详情说明 http://redisdoc.com/hash/hincrbyfloat.html
|
Double |
hIncrByFloat(String key,
String field,
double value)
为哈希表 key 中的域 field 加上浮点数增量 increment
详情说明 http://redisdoc.com/hash/hincrbyfloat.html
|
Set<byte[]> |
hKeys(byte[] key)
获取哈希表 key 中的所有域
详情说明 http://redisdoc.com/hash/hkeys.html
|
Set<String> |
hKeys(String key)
获取哈希表 key 中的所有域
详情说明 http://redisdoc.com/hash/hkeys.html
|
Long |
hLen(byte[] key)
获取哈希表 key 中域的数量
详情说明 http://redisdoc.com/hash/hlen.html
|
Long |
hLen(String key)
获取哈希表 key 中域的数量
详情说明 http://redisdoc.com/hash/hlen.html
|
List<byte[]> |
hMGet(byte[] key,
byte[]... fields)
获取哈希表 key 中,一个或多个给定域的值
详情说明 http://redisdoc.com/hash/hmget.html
|
List<String> |
hMGet(String key,
String... fields)
获取哈希表 key 中,一个或多个给定域的值
详情说明 http://redisdoc.com/hash/hmget.html
|
com.buession.lang.Status |
hMSet(byte[] key,
Map<byte[],byte[]> data)
批量将多个 field => value (域-值)对设置到哈希表 key 中
详情说明 http://redisdoc.com/hash/hmset.html
|
com.buession.lang.Status |
hMSet(String key,
Map<String,String> data)
批量将多个 field => value (域-值)对设置到哈希表 key 中
详情说明 http://redisdoc.com/hash/hmset.html
|
byte[] |
hRandField(byte[] key)
随机返回一个哈希表中存在的域
详情说明 https://redis.io/commands/hrandfield/
|
List<byte[]> |
hRandField(byte[] key,
long count)
随机返回一个哈希表中指定数量的存在的域
详情说明 https://redis.io/commands/hrandfield/
|
String |
hRandField(String key)
随机返回一个哈希表中存在的域
详情说明 https://redis.io/commands/hrandfield/
|
List<String> |
hRandField(String key,
long count)
随机返回一个哈希表中指定数量的存在的域
详情说明 https://redis.io/commands/hrandfield/
|
Map<byte[],byte[]> |
hRandFieldWithValues(byte[] key,
long count)
When called with just the key argument, return a random field from the hash value stored at key.
|
Map<String,String> |
hRandFieldWithValues(String key,
long count)
When called with just the key argument, return a random field from the hash value stored at key.
|
ScanResult<Map<byte[],byte[]>> |
hScan(byte[] key,
byte[] cursor)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<byte[],byte[]>> |
hScan(byte[] key,
byte[] cursor,
byte[] pattern)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<byte[],byte[]>> |
hScan(byte[] key,
byte[] cursor,
byte[] pattern,
long count)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<byte[],byte[]>> |
hScan(byte[] key,
byte[] cursor,
long count)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<byte[],byte[]>> |
hScan(byte[] key,
long cursor)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<byte[],byte[]>> |
hScan(byte[] key,
long cursor,
byte[] pattern)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<byte[],byte[]>> |
hScan(byte[] key,
long cursor,
byte[] pattern,
long count)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<byte[],byte[]>> |
hScan(byte[] key,
long cursor,
long count)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<String,String>> |
hScan(String key,
long cursor)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<String,String>> |
hScan(String key,
long cursor,
long count)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<String,String>> |
hScan(String key,
long cursor,
String pattern)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<String,String>> |
hScan(String key,
long cursor,
String pattern,
long count)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<String,String>> |
hScan(String key,
String cursor)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<String,String>> |
hScan(String key,
String cursor,
long count)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<String,String>> |
hScan(String key,
String cursor,
String pattern)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
ScanResult<Map<String,String>> |
hScan(String key,
String cursor,
String pattern,
long count)
迭代哈希键 key 中的键值对
详情说明 http://redisdoc.com/hash/hscan.html
|
Long |
hSet(byte[] key,
byte[] field,
byte[] value)
将哈希表 key 中域 field 的值设置为 value。
|
Long |
hSet(String key,
String field,
String value)
将哈希表 key 中域 field 的值设置为 value。
|
com.buession.lang.Status |
hSetNx(byte[] key,
byte[] field,
byte[] value)
当且仅当域 field 尚未存在于哈希表 key 中的情况下,将它的值设置为 value
详情说明 http://redisdoc.com/hash/hsetnx.html
|
com.buession.lang.Status |
hSetNx(String key,
String field,
String value)
当且仅当域 field 尚未存在于哈希表 key 中的情况下,将它的值设置为 value
详情说明 http://redisdoc.com/hash/hsetnx.html
|
Long |
hStrLen(byte[] key,
byte[] field)
获取哈希表 key 中,与给定域 field 相关联的值的字符串长度
详情说明 http://redisdoc.com/hash/hstrlen.html
|
Long |
hStrLen(String key,
String field)
获取哈希表 key 中,与给定域 field 相关联的值的字符串长度
详情说明 http://redisdoc.com/hash/hstrlen.html
|
List<byte[]> |
hVals(byte[] key)
获取哈希表 key 中所有域的值
详情说明 http://redisdoc.com/hash/hvals.html
|
List<String> |
hVals(String key)
获取哈希表 key 中所有域的值
详情说明 http://redisdoc.com/hash/hvals.html
|
Long hDel(String key, String... fields)
key
- Keyfields
- 一个或多个域Long hDel(byte[] key, byte[]... fields)
key
- Keyfields
- 一个或多个域Boolean hExists(String key, String field)
key
- Keyfield
- 域Boolean hExists(byte[] key, byte[] field)
key
- Keyfield
- 域String hGet(String key, String field)
key
- Keyfield
- 域byte[] hGet(byte[] key, byte[] field)
key
- Keyfield
- 域Map<String,String> hGetAll(String key)
key
- KeyMap<byte[],byte[]> hGetAll(byte[] key)
key
- KeyLong hIncrBy(String key, String field, long value)
key
- Keyfield
- 域value
- 值Long hIncrBy(byte[] key, byte[] field, long value)
key
- Keyfield
- 域value
- 值Double hIncrByFloat(String key, String field, double value)
key
- Keyfield
- 域value
- 值Double hIncrByFloat(byte[] key, byte[] field, double value)
key
- Keyfield
- 域value
- 值Set<byte[]> hKeys(byte[] key)
key
- KeyLong hLen(byte[] key)
key
- KeyList<String> hMGet(String key, String... fields)
key
- Keyfields
- 一个或多个域List<byte[]> hMGet(byte[] key, byte[]... fields)
key
- Keyfields
- 一个或多个域com.buession.lang.Status hMSet(String key, Map<String,String> data)
key
- Keydata
- field => value (域-值)对com.buession.lang.Status hMSet(byte[] key, Map<byte[],byte[]> data)
key
- Keydata
- field => value (域-值)对byte[] hRandField(byte[] key)
key
- KeyList<String> hRandField(String key, long count)
key
- Keycount
- 数量List<byte[]> hRandField(byte[] key, long count)
key
- Keycount
- 数量Map<String,String> hRandFieldWithValues(String key, long count)
key
- Keycount
- 返回数量Map<byte[],byte[]> hRandFieldWithValues(byte[] key, long count)
key
- Keycount
- 返回数量ScanResult<Map<String,String>> hScan(String key, long cursor)
key
- Keycursor
- 游标ScanResult<Map<byte[],byte[]>> hScan(byte[] key, long cursor)
key
- Keycursor
- 游标ScanResult<Map<String,String>> hScan(String key, String cursor)
key
- Keycursor
- 游标ScanResult<Map<byte[],byte[]>> hScan(byte[] key, byte[] cursor)
key
- Keycursor
- 游标ScanResult<Map<String,String>> hScan(String key, long cursor, String pattern)
key
- Keycursor
- 游标pattern
- glob 风格的模式参数ScanResult<Map<byte[],byte[]>> hScan(byte[] key, long cursor, byte[] pattern)
key
- Keycursor
- 游标pattern
- glob 风格的模式参数ScanResult<Map<String,String>> hScan(String key, String cursor, String pattern)
key
- Keycursor
- 游标pattern
- glob 风格的模式参数ScanResult<Map<byte[],byte[]>> hScan(byte[] key, byte[] cursor, byte[] pattern)
key
- Keycursor
- 游标pattern
- glob 风格的模式参数ScanResult<Map<String,String>> hScan(String key, long cursor, long count)
key
- Keycursor
- 游标count
- 返回元素数量ScanResult<Map<byte[],byte[]>> hScan(byte[] key, long cursor, long count)
key
- Keycursor
- 游标count
- 返回元素数量ScanResult<Map<String,String>> hScan(String key, String cursor, long count)
key
- Keycursor
- 游标count
- 返回元素数量ScanResult<Map<byte[],byte[]>> hScan(byte[] key, byte[] cursor, long count)
key
- Keycursor
- 游标count
- 返回元素数量ScanResult<Map<String,String>> hScan(String key, long cursor, String pattern, long count)
key
- Keycursor
- 游标pattern
- glob 风格的模式参数count
- 返回元素数量ScanResult<Map<byte[],byte[]>> hScan(byte[] key, long cursor, byte[] pattern, long count)
key
- Keycursor
- 游标pattern
- glob 风格的模式参数count
- 返回元素数量ScanResult<Map<String,String>> hScan(String key, String cursor, String pattern, long count)
key
- Keycursor
- 游标pattern
- glob 风格的模式参数count
- 返回元素数量ScanResult<Map<byte[],byte[]>> hScan(byte[] key, byte[] cursor, byte[] pattern, long count)
key
- Keycursor
- 游标pattern
- glob 风格的模式参数count
- 返回元素数量Long hSet(String key, String field, String value)
key
- Keyfield
- 域value
- 值Long hSet(byte[] key, byte[] field, byte[] value)
key
- Keyfield
- 域value
- 值com.buession.lang.Status hSetNx(String key, String field, String value)
key
- Keyfield
- 域value
- 值com.buession.lang.Status hSetNx(byte[] key, byte[] field, byte[] value)
key
- Keyfield
- 域value
- 值Long hStrLen(String key, String field)
key
- Keyfield
- 域Long hStrLen(byte[] key, byte[] field)
key
- Keyfield
- 域List<byte[]> hVals(byte[] key)
key
- KeyCopyright © 2022 buession.com Inc.. All rights reserved.