K - Key type.V - Value type.public interface RedisHashReactiveCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
Mono<Long> |
hdel(K key,
K... fields)
Delete one or more hash fields.
|
Mono<Boolean> |
hexists(K key,
K field)
Determine if a hash field exists.
|
Mono<V> |
hget(K key,
K field)
Get the value of a hash field.
|
Flux<KeyValue<K,V>> |
hgetall(K key)
Get all the fields and values in a hash.
|
Mono<Long> |
hgetall(KeyValueStreamingChannel<K,V> channel,
K key)
Deprecated.
since 6.0 in favor of consuming large results through the
Publisher returned by hgetall(K). |
Mono<Long> |
hincrby(K key,
K field,
long amount)
Increment the integer value of a hash field by the given number.
|
Mono<Double> |
hincrbyfloat(K key,
K field,
double amount)
Increment the float value of a hash field by the given amount.
|
Flux<K> |
hkeys(K key)
Get all the fields in a hash.
|
Mono<Long> |
hkeys(KeyStreamingChannel<K> channel,
K key)
Deprecated.
since 6.0 in favor of consuming large results through the
Publisher returned by hkeys(K). |
Mono<Long> |
hlen(K key)
Get the number of fields in a hash.
|
Mono<Long> |
hmget(KeyValueStreamingChannel<K,V> channel,
K key,
K... fields)
Deprecated.
since 6.0 in favor of consuming large results through the
Publisher returned by hmget(K, K...). |
Flux<KeyValue<K,V>> |
hmget(K key,
K... fields)
Get the values of all the given hash fields.
|
Mono<String> |
hmset(K key,
Map<K,V> map)
Set multiple hash fields to multiple values.
|
Mono<K> |
hrandfield(K key)
Return a random field from the hash stored at
key. |
Flux<K> |
hrandfield(K key,
long count)
Return
count random fields from the hash stored at key. |
Mono<KeyValue<K,V>> |
hrandfieldWithvalues(K key)
Return a random field along its value from the hash stored at
key. |
Flux<KeyValue<K,V>> |
hrandfieldWithvalues(K key,
long count)
Return
count random fields along their value from the hash stored at key. |
Mono<MapScanCursor<K,V>> |
hscan(K key)
Incrementally iterate hash fields and associated values.
|
Mono<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key)
Deprecated.
since 6.0 in favor of consuming large results through the
Publisher returned by hscan(K). |
Mono<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanArgs scanArgs)
Deprecated.
since 6.0 in favor of consuming large results through the
Publisher returned by hscan(K). |
Mono<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanCursor scanCursor)
Deprecated.
since 6.0 in favor of consuming large results through the
Publisher returned by hscan(K). |
Mono<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Deprecated.
since 6.0 in favor of consuming large results through the
Publisher returned by hscan(K). |
Mono<MapScanCursor<K,V>> |
hscan(K key,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
Mono<MapScanCursor<K,V>> |
hscan(K key,
ScanCursor scanCursor)
Incrementally iterate hash fields and associated values.
|
Mono<MapScanCursor<K,V>> |
hscan(K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
Mono<Boolean> |
hset(K key,
K field,
V value)
Set the string value of a hash field.
|
Mono<Long> |
hset(K key,
Map<K,V> map)
Set multiple hash fields to multiple values.
|
Mono<Boolean> |
hsetnx(K key,
K field,
V value)
Set the value of a hash field, only if the field does not exist.
|
Mono<Long> |
hstrlen(K key,
K field)
Get the string length of the field value in a hash.
|
Flux<V> |
hvals(K key)
Get all the values in a hash.
|
Mono<Long> |
hvals(ValueStreamingChannel<V> channel,
K key)
Deprecated.
since 6.0 in favor of consuming large results through the
Publisher returned by hvals(K). |
Mono<Long> hdel(K key, K... fields)
key - the key.fields - the field type: key.Mono<Boolean> hexists(K key, K field)
key - the key.field - the field type: key.true if the hash contains field. false if the hash does not contain field, or
key does not exist.Mono<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.Mono<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.Mono<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.Flux<KeyValue<K,V>> hgetall(K key)
key - the key.key
does not exist.@Deprecated Mono<Long> hgetall(KeyValueStreamingChannel<K,V> channel, K key)
Publisher returned by hgetall(K).channel - the channel.key - the key.Flux<K> hkeys(K key)
key - the key.key does not exist.@Deprecated Mono<Long> hkeys(KeyStreamingChannel<K> channel, K key)
Publisher returned by hkeys(K).channel - the channel.key - the key.Mono<Long> hlen(K key)
key - the key.0 when key does not exist.Flux<KeyValue<K,V>> hmget(K key, K... fields)
key - the key.fields - the field type: key.@Deprecated Mono<Long> hmget(KeyValueStreamingChannel<K,V> channel, K key, K... fields)
Publisher returned by hmget(K, K...).channel - the channel.key - the key.fields - the fields.Mono<String> hmset(K key, Map<K,V> map)
key - the key.map - the hash to apply.Mono<K> hrandfield(K key)
key.key - the key.Flux<K> hrandfield(K key, long count)
count random fields from the hash stored at key.key - the key.count - the number of fields to return. If the provided count argument is positive, return an array of distinct
fields.Mono<KeyValue<K,V>> hrandfieldWithvalues(K key)
key.key - the key.count - the number of fields to return. If the provided count argument is positive, return an array of distinct
fields.Flux<KeyValue<K,V>> hrandfieldWithvalues(K key, long count)
count random fields along their value from the hash stored at key.key - the key.count - the number of fields to return. If the provided count argument is positive, return an array of distinct
fields.Mono<MapScanCursor<K,V>> hscan(K key)
key - the key.Mono<MapScanCursor<K,V>> hscan(K key, ScanArgs scanArgs)
key - the key.scanArgs - scan arguments.Mono<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.Mono<MapScanCursor<K,V>> hscan(K key, ScanCursor scanCursor)
key - the key.scanCursor - cursor to resume from a previous scan, must not be null.@Deprecated Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key)
Publisher returned by hscan(K).channel - streaming channel that receives a call for every key-value pair.key - the key.@Deprecated Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanArgs scanArgs)
Publisher returned by hscan(K).channel - streaming channel that receives a call for every key-value pair.key - the key.scanArgs - scan arguments.@Deprecated Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
Publisher returned by hscan(K).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.@Deprecated Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor)
Publisher returned by hscan(K).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.Mono<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.Mono<Long> hset(K key, Map<K,V> map)
key - the key of the hash.map - the field/value pairs to update.Mono<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.Mono<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.Flux<V> hvals(K key)
key - the key.key does not exist.@Deprecated Mono<Long> hvals(ValueStreamingChannel<V> channel, K key)
Publisher returned by hvals(K).channel - streaming channel that receives a call for every value.key - the key.Copyright © 2024 lettuce.io. All rights reserved.