Interface AsyncCacheCommands
-
- All Superinterfaces:
io.lettuce.core.dynamic.Commands
@Deprecated public interface AsyncCacheCommands extends io.lettuce.core.dynamic.CommandsDeprecated.The asynchronous operations required byRedisCache.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
get
@Command("GET :key") io.lettuce.core.RedisFuture<byte[]> get(@Param("key") byte[] key)Deprecated.See https://redis.io/commands/get.- Parameters:
key- The key to retrieve- Returns:
- result of completion
-
remove
@Command("DEL :key") io.lettuce.core.RedisFuture<java.lang.Long> remove(@Param("key") byte[] key)Deprecated.See https://redis.io/commands/del.- Parameters:
key- The key to delete- Returns:
- result of completion
-
put
@Command("SET :key :value") io.lettuce.core.RedisFuture<java.lang.Void> put(@Param("key") byte[] key, @Param("value") byte[] value)Deprecated.See https://redis.io/commands/set.- Parameters:
key- The keyvalue- The value- Returns:
- result of completion
-
put
@Command("SET :key :value PX :timeout") io.lettuce.core.RedisFuture<java.lang.Void> put(@Param("key") byte[] key, @Param("value") byte[] value, @Param("timeout") long timeout)Deprecated.See https://redis.io/commands/set.- Parameters:
key- The keyvalue- The valuetimeout- The timeout- Returns:
- result of completion
-
expire
@Command("PEXPIRE :key :timeout") io.lettuce.core.RedisFuture<java.lang.Void> expire(@Param("key") byte[] key, @Param("timeout") long timeout)Deprecated.See https://redis.io/commands/pexpire.- Parameters:
key- The key to expiretimeout- The timeout- Returns:
- result of completion
-
keys
io.lettuce.core.RedisFuture<java.util.List<byte[]>> keys(byte[] pattern)
Deprecated.Find all keys matching the given pattern.- Parameters:
pattern- the pattern type: patternkey (pattern)- Returns:
- List<K> array-reply list of keys matching
pattern.
-
del
io.lettuce.core.RedisFuture<java.lang.Long> del(byte[]... keys)
Deprecated.Delete one or more keys.- Parameters:
keys- the keys- Returns:
- Long integer-reply The number of keys that were removed.
-
-