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