| Package | Description |
|---|---|
| redis.clients.jedis | |
| redis.clients.jedis.commands |
This package contains the interfaces that contain methods representing Redis core commands.
|
| redis.clients.jedis.params |
This package contains the classes that represent optional parameters of core Redis commands.
|
| Modifier and Type | Method and Description |
|---|---|
Response<java.lang.String> |
PipeliningBase.set(byte[] key,
byte[] value,
SetParams params) |
java.lang.String |
UnifiedJedis.set(byte[] key,
byte[] value,
SetParams params) |
CommandObject<java.lang.String> |
CommandObjects.set(byte[] key,
byte[] value,
SetParams params) |
java.lang.String |
Jedis.set(byte[] key,
byte[] value,
SetParams params)
Set the string value as value of the key.
|
Response<java.lang.String> |
PipeliningBase.set(java.lang.String key,
java.lang.String value,
SetParams params) |
java.lang.String |
UnifiedJedis.set(java.lang.String key,
java.lang.String value,
SetParams params) |
CommandObject<java.lang.String> |
CommandObjects.set(java.lang.String key,
java.lang.String value,
SetParams params) |
java.lang.String |
Jedis.set(java.lang.String key,
java.lang.String value,
SetParams params)
Set the string value as value of the key.
|
Response<byte[]> |
PipeliningBase.setGet(byte[] key,
byte[] value,
SetParams params) |
byte[] |
UnifiedJedis.setGet(byte[] key,
byte[] value,
SetParams params) |
CommandObject<byte[]> |
CommandObjects.setGet(byte[] key,
byte[] value,
SetParams params) |
byte[] |
Jedis.setGet(byte[] key,
byte[] value,
SetParams params) |
Response<java.lang.String> |
PipeliningBase.setGet(java.lang.String key,
java.lang.String value,
SetParams params) |
java.lang.String |
UnifiedJedis.setGet(java.lang.String key,
java.lang.String value,
SetParams params) |
CommandObject<java.lang.String> |
CommandObjects.setGet(java.lang.String key,
java.lang.String value,
SetParams params) |
java.lang.String |
Jedis.setGet(java.lang.String key,
java.lang.String value,
SetParams params) |
| Modifier and Type | Method and Description |
|---|---|
Response<java.lang.String> |
StringPipelineBinaryCommands.set(byte[] key,
byte[] value,
SetParams params) |
java.lang.String |
StringBinaryCommands.set(byte[] key,
byte[] value,
SetParams params) |
java.lang.String |
StringCommands.set(java.lang.String key,
java.lang.String value,
SetParams params)
Set Command
Set the string value as value of the key.
|
Response<java.lang.String> |
StringPipelineCommands.set(java.lang.String key,
java.lang.String value,
SetParams params) |
Response<byte[]> |
StringPipelineBinaryCommands.setGet(byte[] key,
byte[] value,
SetParams params) |
byte[] |
StringBinaryCommands.setGet(byte[] key,
byte[] value,
SetParams params) |
java.lang.String |
StringCommands.setGet(java.lang.String key,
java.lang.String value,
SetParams params) |
Response<java.lang.String> |
StringPipelineCommands.setGet(java.lang.String key,
java.lang.String value,
SetParams params) |
| Modifier and Type | Method and Description |
|---|---|
SetParams |
SetParams.ex(long remainingSeconds)
Set the specified expire time, in seconds.
|
SetParams |
SetParams.exAt(long timestampSeconds)
Set the specified Unix time at which the key will expire, in seconds.
|
SetParams |
SetParams.keepttl()
Deprecated.
Since 6.1.0 use
keepTtl() instead. |
SetParams |
SetParams.keepTtl()
Retain the time to live associated with the key.
|
SetParams |
SetParams.nx()
Only set the key if it does not already exist.
|
SetParams |
SetParams.px(long remainingMilliseconds)
Set the specified expire time, in milliseconds.
|
SetParams |
SetParams.pxAt(long timestampMilliseconds)
Set the specified Unix time at which the key will expire, in milliseconds.
|
static SetParams |
SetParams.setParams() |
SetParams |
SetParams.xx()
Only set the key if it already exist.
|
Copyright © 2025. All rights reserved.