Interface SyncCacheCommands
-
- All Superinterfaces:
io.lettuce.core.dynamic.Commands
@Deprecated public interface SyncCacheCommands extends io.lettuce.core.dynamic.CommandsDeprecated.The synchronous operations required byRedisCache.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.Longdel(byte[]... keys)Deprecated.Delete one or more keys.voidexpire(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.voidput(byte[] key, byte[] value)Deprecated.See https://redis.io/commands/set.voidput(byte[] key, byte[] value, long timeout)Deprecated.See https://redis.io/commands/set.voidremove(byte[] key)Deprecated.See https://redis.io/commands/del.
-
-
-
Method Detail
-
get
@Command("GET :key") byte[] get(@Param("key") byte[] key)Deprecated.See https://redis.io/commands/get.- Parameters:
key- The key to retrieve- Returns:
- key as byte array
-
remove
@Command("DEL :key") void remove(@Param("key") byte[] key)Deprecated.See https://redis.io/commands/del.- Parameters:
key- The key to delete
-
put
@Command("SET :key :value") void put(@Param("key") byte[] key, @Param("value") byte[] value)Deprecated.See https://redis.io/commands/set.- Parameters:
key- The keyvalue- The value
-
put
@Command("SET :key :value PX :timeout") 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
-
expire
@Command("PEXPIRE :key :timeout") 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
-
del
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.
-
keys
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.
-
-