@Deprecated
public interface SyncCacheCommands
extends io.lettuce.core.dynamic.Commands
RedisCache
.Modifier and Type | Method and Description |
---|---|
java.lang.Long |
del(byte[]... keys)
Deprecated.
Delete one or more keys.
|
void |
expire(byte[] key,
long timeout)
Deprecated.
See https://redis.io/commands/pexpire.
|
byte[] |
get(byte[] key)
Deprecated.
See https://redis.io/commands/get.
|
java.util.List<byte[]> |
keys(byte[] pattern)
Deprecated.
Find all keys matching the given pattern.
|
void |
put(byte[] key,
byte[] value)
Deprecated.
See https://redis.io/commands/set.
|
void |
put(byte[] key,
byte[] value,
long timeout)
Deprecated.
See https://redis.io/commands/set.
|
void |
remove(byte[] key)
Deprecated.
See https://redis.io/commands/del.
|
@Command(value="GET :key") byte[] get(@Param(value="key") byte[] key)
key
- The key to retrieve@Command(value="DEL :key") void remove(@Param(value="key") byte[] key)
key
- The key to delete@Command(value="SET :key :value") void put(@Param(value="key") byte[] key, @Param(value="value") byte[] value)
key
- The keyvalue
- The value@Command(value="SET :key :value PX :timeout") void put(@Param(value="key") byte[] key, @Param(value="value") byte[] value, @Param(value="timeout") long timeout)
key
- The keyvalue
- The valuetimeout
- The timeout@Command(value="PEXPIRE :key :timeout") void expire(@Param(value="key") byte[] key, @Param(value="timeout") long timeout)
key
- The key to expiretimeout
- The timeoutjava.lang.Long del(byte[]... keys)
keys
- the keysjava.util.List<byte[]> keys(byte[] pattern)
pattern
- the pattern type: patternkey (pattern)pattern
.