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