org.springframework.data.keyvalue.redis.connection
Interface RedisKeyCommands
- All Known Subinterfaces:
- RedisCommands, RedisConnection, StringRedisConnection
- All Known Implementing Classes:
- DefaultStringRedisConnection, JedisConnection, JredisConnection, RjcConnection
public interface RedisKeyCommands
Key-specific commands supported by Redis.
- Author:
- Costin Leau
exists
Boolean exists(byte[] key)
del
Long del(byte[]... keys)
type
DataType type(byte[] key)
keys
Set<byte[]> keys(byte[] pattern)
randomKey
byte[] randomKey()
rename
void rename(byte[] oldName,
byte[] newName)
renameNX
Boolean renameNX(byte[] oldName,
byte[] newName)
expire
Boolean expire(byte[] key,
long seconds)
expireAt
Boolean expireAt(byte[] key,
long unixTime)
persist
Boolean persist(byte[] key)
move
Boolean move(byte[] key,
int dbIndex)
ttl
Long ttl(byte[] key)
sort
List<byte[]> sort(byte[] key,
SortParameters params)
sort
Long sort(byte[] key,
SortParameters params,
byte[] storeKey)
Copyright © 2010-2011 SpringSource. All Rights Reserved.