Package | Description |
---|---|
io.lettuce.core |
The Redis client package containing
RedisClient for Redis Standalone and Redis Sentinel operations. |
io.lettuce.core.api.async |
Standalone Redis API for asynchronous executed commands.
|
io.lettuce.core.api.reactive |
Standalone Redis API for reactive command execution.
|
io.lettuce.core.api.sync |
Standalone Redis API for synchronous executed commands.
|
io.lettuce.core.cluster.api.async |
Redis Cluster API for asynchronous executed commands.
|
io.lettuce.core.cluster.api.sync |
Redis Cluster API for synchronous executed commands.
|
Modifier and Type | Method and Description |
---|---|
SetArgs |
SetArgs.ex(Duration timeout)
Set the specified expire time, in seconds.
|
static SetArgs |
SetArgs.Builder.ex(Duration timeout)
Creates new
SetArgs and enable EX. |
SetArgs |
SetArgs.ex(long timeout)
Set the specified expire time, in seconds.
|
static SetArgs |
SetArgs.Builder.ex(long timeout)
Creates new
SetArgs and enable EX. |
SetArgs |
SetArgs.exAt(Date timestamp)
Set the specified expire at time using a posix
timestamp . |
static SetArgs |
SetArgs.Builder.exAt(Date timestamp)
Creates new
SetArgs and enable EXAT. |
SetArgs |
SetArgs.exAt(Instant timestamp)
Set the specified expire at time using a posix
timestamp . |
static SetArgs |
SetArgs.Builder.exAt(Instant timestamp)
Creates new
SetArgs and enable EXAT. |
SetArgs |
SetArgs.exAt(long timestamp)
Set the specified expire at time using a posix
timestamp . |
static SetArgs |
SetArgs.Builder.exAt(long timestamp)
Creates new
SetArgs and enable EXAT. |
SetArgs |
SetArgs.keepttl()
Set the value and retain the existing TTL.
|
static SetArgs |
SetArgs.Builder.keepttl()
Creates new
SetArgs and enable KEEPTTL. |
SetArgs |
SetArgs.nx()
Only set the key if it does not already exist.
|
static SetArgs |
SetArgs.Builder.nx()
Creates new
SetArgs and enable NX. |
SetArgs |
SetArgs.px(Duration timeout)
Set the specified expire time, in milliseconds.
|
static SetArgs |
SetArgs.Builder.px(Duration timeout)
Creates new
SetArgs and enable PX. |
SetArgs |
SetArgs.px(long timeout)
Set the specified expire time, in milliseconds.
|
static SetArgs |
SetArgs.Builder.px(long timeout)
Creates new
SetArgs and enable PX. |
SetArgs |
SetArgs.pxAt(Date timestamp)
Set the specified expire at time using a posix
timestamp . |
static SetArgs |
SetArgs.Builder.pxAt(Date timestamp)
Creates new
SetArgs and enable PXAT. |
SetArgs |
SetArgs.pxAt(Instant timestamp)
Set the specified expire at time using a posix
timestamp . |
static SetArgs |
SetArgs.Builder.pxAt(Instant timestamp)
Creates new
SetArgs and enable PXAT. |
SetArgs |
SetArgs.pxAt(long timestamp)
Set the specified expire at time using a posix
timestamp . |
static SetArgs |
SetArgs.Builder.pxAt(long timestamp)
Creates new
SetArgs and enable PXAT. |
SetArgs |
SetArgs.xx()
Only set the key if it already exists.
|
static SetArgs |
SetArgs.Builder.xx()
Creates new
SetArgs and enable XX. |
Modifier and Type | Method and Description |
---|---|
RedisFuture<String> |
AbstractRedisAsyncCommands.set(K key,
V value,
SetArgs setArgs) |
Mono<String> |
AbstractRedisReactiveCommands.set(K key,
V value,
SetArgs setArgs) |
RedisFuture<V> |
AbstractRedisAsyncCommands.setGet(K key,
V value,
SetArgs setArgs) |
Mono<V> |
AbstractRedisReactiveCommands.setGet(K key,
V value,
SetArgs setArgs) |
Modifier and Type | Method and Description |
---|---|
RedisFuture<String> |
RedisStringAsyncCommands.set(K key,
V value,
SetArgs setArgs)
Set the string value of a key.
|
RedisFuture<V> |
RedisStringAsyncCommands.setGet(K key,
V value,
SetArgs setArgs)
Set the string value of a key and return its old value.
|
Modifier and Type | Method and Description |
---|---|
Mono<String> |
RedisStringReactiveCommands.set(K key,
V value,
SetArgs setArgs)
Set the string value of a key.
|
Mono<V> |
RedisStringReactiveCommands.setGet(K key,
V value,
SetArgs setArgs)
Set the string value of a key and return its old value.
|
Modifier and Type | Method and Description |
---|---|
String |
RedisStringCommands.set(K key,
V value,
SetArgs setArgs)
Set the string value of a key.
|
V |
RedisStringCommands.setGet(K key,
V value,
SetArgs setArgs)
Set the string value of a key and return its old value.
|
Modifier and Type | Method and Description |
---|---|
AsyncExecutions<String> |
NodeSelectionStringAsyncCommands.set(K key,
V value,
SetArgs setArgs)
Set the string value of a key.
|
AsyncExecutions<V> |
NodeSelectionStringAsyncCommands.setGet(K key,
V value,
SetArgs setArgs)
Set the string value of a key and return its old value.
|
Modifier and Type | Method and Description |
---|---|
Executions<String> |
NodeSelectionStringCommands.set(K key,
V value,
SetArgs setArgs)
Set the string value of a key.
|
Executions<V> |
NodeSelectionStringCommands.setGet(K key,
V value,
SetArgs setArgs)
Set the string value of a key and return its old value.
|
Copyright © 2024 lettuce.io. All rights reserved.