K
- Key type.V
- Value type.public interface NodeSelectionHashAsyncCommands<K,V>
Modifier and Type | Method and Description |
---|---|
AsyncExecutions<Long> |
hdel(K key,
K... fields)
Delete one or more hash fields.
|
AsyncExecutions<Boolean> |
hexists(K key,
K field)
Determine if a hash field exists.
|
AsyncExecutions<V> |
hget(K key,
K field)
Get the value of a hash field.
|
AsyncExecutions<Map<K,V>> |
hgetall(K key)
Get all the fields and values in a hash.
|
AsyncExecutions<Long> |
hgetall(KeyValueStreamingChannel<K,V> channel,
K key)
Stream over all the fields and values in a hash.
|
AsyncExecutions<Long> |
hincrby(K key,
K field,
long amount)
Increment the integer value of a hash field by the given number.
|
AsyncExecutions<Double> |
hincrbyfloat(K key,
K field,
double amount)
Increment the float value of a hash field by the given amount.
|
AsyncExecutions<List<K>> |
hkeys(K key)
Get all the fields in a hash.
|
AsyncExecutions<Long> |
hkeys(KeyStreamingChannel<K> channel,
K key)
Stream over all the fields in a hash.
|
AsyncExecutions<Long> |
hlen(K key)
Get the number of fields in a hash.
|
AsyncExecutions<Long> |
hmget(KeyValueStreamingChannel<K,V> channel,
K key,
K... fields)
Stream over the values of all the given hash fields.
|
AsyncExecutions<List<KeyValue<K,V>>> |
hmget(K key,
K... fields)
Get the values of all the given hash fields.
|
AsyncExecutions<String> |
hmset(K key,
Map<K,V> map)
Set multiple hash fields to multiple values.
|
AsyncExecutions<MapScanCursor<K,V>> |
hscan(K key)
Incrementally iterate hash fields and associated values.
|
AsyncExecutions<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key)
Incrementally iterate hash fields and associated values.
|
AsyncExecutions<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
AsyncExecutions<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanCursor scanCursor)
Incrementally iterate hash fields and associated values.
|
AsyncExecutions<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
AsyncExecutions<MapScanCursor<K,V>> |
hscan(K key,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
AsyncExecutions<MapScanCursor<K,V>> |
hscan(K key,
ScanCursor scanCursor)
Incrementally iterate hash fields and associated values.
|
AsyncExecutions<MapScanCursor<K,V>> |
hscan(K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
AsyncExecutions<Boolean> |
hset(K key,
K field,
V value)
Set the string value of a hash field.
|
AsyncExecutions<Long> |
hset(K key,
Map<K,V> map)
Set multiple hash fields to multiple values.
|
AsyncExecutions<Boolean> |
hsetnx(K key,
K field,
V value)
Set the value of a hash field, only if the field does not exist.
|
AsyncExecutions<Long> |
hstrlen(K key,
K field)
Get the string length of the field value in a hash.
|
AsyncExecutions<List<V>> |
hvals(K key)
Get all the values in a hash.
|
AsyncExecutions<Long> |
hvals(ValueStreamingChannel<V> channel,
K key)
Stream over all the values in a hash.
|
AsyncExecutions<Long> hdel(K key, K... fields)
key
- the key.fields
- the field type: key.AsyncExecutions<Boolean> hexists(K key, K field)
key
- the key.field
- the field type: key.AsyncExecutions<V> hget(K key, K field)
key
- the key.field
- the field type: key.field
, or null
when field
is not present in
the hash or key
does not exist.AsyncExecutions<Long> hincrby(K key, K field, long amount)
key
- the key.field
- the field type: key.amount
- the increment type: long.field
after the increment operation.AsyncExecutions<Double> hincrbyfloat(K key, K field, double amount)
key
- the key.field
- the field type: key.amount
- the increment type: double.field
after the increment.AsyncExecutions<Map<K,V>> hgetall(K key)
key
- the key.key
does not exist.AsyncExecutions<Long> hgetall(KeyValueStreamingChannel<K,V> channel, K key)
channel
- the channel.key
- the key.AsyncExecutions<List<K>> hkeys(K key)
key
- the key.key
does not exist.AsyncExecutions<Long> hkeys(KeyStreamingChannel<K> channel, K key)
channel
- the channel.key
- the key.AsyncExecutions<Long> hlen(K key)
key
- the key.0
when key
does not exist.AsyncExecutions<List<KeyValue<K,V>>> hmget(K key, K... fields)
key
- the key.fields
- the field type: key.AsyncExecutions<Long> hmget(KeyValueStreamingChannel<K,V> channel, K key, K... fields)
channel
- the channel.key
- the key.fields
- the fields.AsyncExecutions<String> hmset(K key, Map<K,V> map)
key
- the key.map
- the null.AsyncExecutions<MapScanCursor<K,V>> hscan(K key)
key
- the key.AsyncExecutions<MapScanCursor<K,V>> hscan(K key, ScanArgs scanArgs)
key
- the key.scanArgs
- scan arguments.AsyncExecutions<MapScanCursor<K,V>> hscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.AsyncExecutions<MapScanCursor<K,V>> hscan(K key, ScanCursor scanCursor)
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.AsyncExecutions<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key)
channel
- streaming channel that receives a call for every key-value pair.key
- the key.AsyncExecutions<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanArgs scanArgs)
channel
- streaming channel that receives a call for every key-value pair.key
- the key.scanArgs
- scan arguments.AsyncExecutions<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
channel
- streaming channel that receives a call for every key-value pair.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.AsyncExecutions<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor)
channel
- streaming channel that receives a call for every key-value pair.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.AsyncExecutions<Boolean> hset(K key, K field, V value)
key
- the key.field
- the field type: key.value
- the value.true
if field
is a new field in the hash and value
was set. false
if
field
already exists in the hash and the value was updated.AsyncExecutions<Long> hset(K key, Map<K,V> map)
key
- the key of the hash.map
- the field/value pairs to update.AsyncExecutions<Boolean> hsetnx(K key, K field, V value)
key
- the key.field
- the field type: key.value
- the value.1
if field
is a new field in the hash and value
was set. 0
if field
already exists in the hash and no operation was performed.AsyncExecutions<Long> hstrlen(K key, K field)
key
- the key.field
- the field type: key.field
value, or 0
when field
is not present
in the hash or key
does not exist at all.AsyncExecutions<List<V>> hvals(K key)
key
- the key.key
does not exist.AsyncExecutions<Long> hvals(ValueStreamingChannel<V> channel, K key)
channel
- streaming channel that receives a call for every value.key
- the key.Copyright © 2021 lettuce.io. All rights reserved.