public interface HashBinaryCommands
| Modifier and Type | Method and Description |
|---|---|
long |
hdel(byte[] key,
byte[]... field) |
boolean |
hexists(byte[] key,
byte[] field) |
java.util.List<java.lang.Long> |
hexpire(byte[] key,
long seconds,
byte[]... fields)
Set expiry for hash field using relative time to expire (seconds).
|
java.util.List<java.lang.Long> |
hexpire(byte[] key,
long seconds,
ExpiryOption condition,
byte[]... fields)
Set expiry for hash field using relative time to expire (seconds).
|
java.util.List<java.lang.Long> |
hexpireAt(byte[] key,
long unixTimeSeconds,
byte[]... fields)
Set expiry for hash field using an absolute Unix timestamp (seconds).
|
java.util.List<java.lang.Long> |
hexpireAt(byte[] key,
long unixTimeSeconds,
ExpiryOption condition,
byte[]... fields)
Set expiry for hash field using an absolute Unix timestamp (seconds).
|
java.util.List<java.lang.Long> |
hexpireTime(byte[] key,
byte[]... fields)
Returns the expiration time of a hash field as a Unix timestamp, in seconds.
|
byte[] |
hget(byte[] key,
byte[] field) |
java.util.Map<byte[],byte[]> |
hgetAll(byte[] key) |
java.util.List<byte[]> |
hgetdel(byte[] key,
byte[]... fields)
Retrieves the values associated with the specified fields in the hash stored at the given key
and then deletes those fields from the hash.
|
java.util.List<byte[]> |
hgetex(byte[] key,
HGetExParams params,
byte[]... fields)
Retrieves the values associated with the specified fields in a hash stored at the given key
and optionally sets their expiration.
|
long |
hincrBy(byte[] key,
byte[] field,
long value) |
double |
hincrByFloat(byte[] key,
byte[] field,
double value) |
java.util.Set<byte[]> |
hkeys(byte[] key) |
long |
hlen(byte[] key) |
java.util.List<byte[]> |
hmget(byte[] key,
byte[]... fields) |
java.lang.String |
hmset(byte[] key,
java.util.Map<byte[],byte[]> hash) |
java.util.List<java.lang.Long> |
hpersist(byte[] key,
byte[]... fields)
Removes the expiration time for each specified field.
|
java.util.List<java.lang.Long> |
hpexpire(byte[] key,
long milliseconds,
byte[]... fields)
Set expiry for hash field using relative time to expire (milliseconds).
|
java.util.List<java.lang.Long> |
hpexpire(byte[] key,
long milliseconds,
ExpiryOption condition,
byte[]... fields)
Set expiry for hash field using relative time to expire (milliseconds).
|
java.util.List<java.lang.Long> |
hpexpireAt(byte[] key,
long unixTimeMillis,
byte[]... fields)
Set expiry for hash field using an absolute Unix timestamp (milliseconds).
|
java.util.List<java.lang.Long> |
hpexpireAt(byte[] key,
long unixTimeMillis,
ExpiryOption condition,
byte[]... fields)
Set expiry for hash field using an absolute Unix timestamp (milliseconds).
|
java.util.List<java.lang.Long> |
hpexpireTime(byte[] key,
byte[]... fields)
Returns the expiration time of a hash field as a Unix timestamp, in milliseconds.
|
java.util.List<java.lang.Long> |
hpttl(byte[] key,
byte[]... fields)
Returns the TTL in milliseconds of a hash field.
|
byte[] |
hrandfield(byte[] key) |
java.util.List<byte[]> |
hrandfield(byte[] key,
long count) |
java.util.List<java.util.Map.Entry<byte[],byte[]>> |
hrandfieldWithValues(byte[] key,
long count) |
default ScanResult<java.util.Map.Entry<byte[],byte[]>> |
hscan(byte[] key,
byte[] cursor) |
ScanResult<java.util.Map.Entry<byte[],byte[]>> |
hscan(byte[] key,
byte[] cursor,
ScanParams params) |
default ScanResult<byte[]> |
hscanNoValues(byte[] key,
byte[] cursor) |
ScanResult<byte[]> |
hscanNoValues(byte[] key,
byte[] cursor,
ScanParams params) |
long |
hset(byte[] key,
byte[] field,
byte[] value) |
long |
hset(byte[] key,
java.util.Map<byte[],byte[]> hash) |
long |
hsetex(byte[] key,
HSetExParams params,
byte[] field,
byte[] value)
Sets the specified fields in the hash stored at key to the specified values with additional parameters,
and optionally set their expiration.
|
long |
hsetex(byte[] key,
HSetExParams params,
java.util.Map<byte[],byte[]> hash)
Sets the specified fields in the hash stored at key to the specified values with additional parameters,
and optionally set their expiration.
|
long |
hsetnx(byte[] key,
byte[] field,
byte[] value) |
long |
hstrlen(byte[] key,
byte[] field) |
java.util.List<java.lang.Long> |
httl(byte[] key,
byte[]... fields)
Returns the TTL in seconds of a hash field.
|
java.util.List<byte[]> |
hvals(byte[] key) |
long hset(byte[] key,
byte[] field,
byte[] value)
long hset(byte[] key,
java.util.Map<byte[],byte[]> hash)
long hsetex(byte[] key,
HSetExParams params,
byte[] field,
byte[] value)
key - the key of the hashparams - the parameters for the HSETEX commandfield - the field in the hashvalue - the value to setHSetExParamslong hsetex(byte[] key,
HSetExParams params,
java.util.Map<byte[],byte[]> hash)
key - the key of the hashparams - the parameters for the HSETEX commandhash - the map containing field-value pairs to set in the hashHSetExParamsbyte[] hget(byte[] key,
byte[] field)
java.util.List<byte[]> hgetex(byte[] key,
HGetExParams params,
byte[]... fields)
key - the key of the hashparams - additional parameters for the HGETEX commandfields - the fields whose values are to be retrievedHGetExParamsjava.util.List<byte[]> hgetdel(byte[] key,
byte[]... fields)
key - the key of the hashfields - the fields whose values are to be retrieved and then deletedlong hsetnx(byte[] key,
byte[] field,
byte[] value)
java.lang.String hmset(byte[] key,
java.util.Map<byte[],byte[]> hash)
java.util.List<byte[]> hmget(byte[] key,
byte[]... fields)
long hincrBy(byte[] key,
byte[] field,
long value)
double hincrByFloat(byte[] key,
byte[] field,
double value)
boolean hexists(byte[] key,
byte[] field)
long hdel(byte[] key,
byte[]... field)
long hlen(byte[] key)
java.util.Set<byte[]> hkeys(byte[] key)
java.util.List<byte[]> hvals(byte[] key)
java.util.Map<byte[],byte[]> hgetAll(byte[] key)
byte[] hrandfield(byte[] key)
java.util.List<byte[]> hrandfield(byte[] key,
long count)
java.util.List<java.util.Map.Entry<byte[],byte[]>> hrandfieldWithValues(byte[] key,
long count)
default ScanResult<java.util.Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor)
ScanResult<java.util.Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor, ScanParams params)
default ScanResult<byte[]> hscanNoValues(byte[] key, byte[] cursor)
ScanResult<byte[]> hscanNoValues(byte[] key, byte[] cursor, ScanParams params)
long hstrlen(byte[] key,
byte[] field)
java.util.List<java.lang.Long> hexpire(byte[] key,
long seconds,
byte[]... fields)
key - hashseconds - time to expirefields - java.util.List<java.lang.Long> hexpire(byte[] key,
long seconds,
ExpiryOption condition,
byte[]... fields)
key - hashseconds - time to expirecondition - can be NX, XX, GT or LTfields - java.util.List<java.lang.Long> hpexpire(byte[] key,
long milliseconds,
byte[]... fields)
key - hashmilliseconds - time to expirefields - java.util.List<java.lang.Long> hpexpire(byte[] key,
long milliseconds,
ExpiryOption condition,
byte[]... fields)
key - hashmilliseconds - time to expirecondition - can be NX, XX, GT or LTfields - java.util.List<java.lang.Long> hexpireAt(byte[] key,
long unixTimeSeconds,
byte[]... fields)
key - hashunixTimeSeconds - time to expirefields - java.util.List<java.lang.Long> hexpireAt(byte[] key,
long unixTimeSeconds,
ExpiryOption condition,
byte[]... fields)
key - hashunixTimeSeconds - time to expirecondition - can be NX, XX, GT or LTfields - java.util.List<java.lang.Long> hpexpireAt(byte[] key,
long unixTimeMillis,
byte[]... fields)
key - hashunixTimeMillis - time to expirefields - java.util.List<java.lang.Long> hpexpireAt(byte[] key,
long unixTimeMillis,
ExpiryOption condition,
byte[]... fields)
key - hashunixTimeMillis - time to expirecondition - can be NX, XX, GT or LTfields - java.util.List<java.lang.Long> hexpireTime(byte[] key,
byte[]... fields)
key - hashfields - java.util.List<java.lang.Long> hpexpireTime(byte[] key,
byte[]... fields)
key - hashfields - java.util.List<java.lang.Long> httl(byte[] key,
byte[]... fields)
key - hashfields - java.util.List<java.lang.Long> hpttl(byte[] key,
byte[]... fields)
key - hashfields - java.util.List<java.lang.Long> hpersist(byte[] key,
byte[]... fields)
key - hashfields - Copyright © 2025. All rights reserved.