org.springframework.data.keyvalue.redis.connection
Interface RedisCommands
- All Superinterfaces:
- RedisHashCommands, RedisListCommands, RedisPubSubCommands, RedisServerCommands, RedisSetCommands, RedisStringCommands, RedisTxCommands, RedisZSetCommands
- All Known Subinterfaces:
- RedisConnection, StringRedisConnection
- All Known Implementing Classes:
- DefaultStringRedisConnection, JedisConnection, JredisConnection
public interface RedisCommands
- extends RedisTxCommands, RedisStringCommands, RedisListCommands, RedisSetCommands, RedisZSetCommands, RedisHashCommands, RedisServerCommands, RedisPubSubCommands
Interface for the commands supported by Redis.
- Author:
- Costin Leau
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisStringCommands |
append, decr, decrBy, get, getBit, getRange, getSet, incr, incrBy, mGet, mSet, mSetNX, set, setBit, setEx, setNX, setRange, strLen |
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisListCommands |
bLPop, bRPop, bRPopLPush, lIndex, lInsert, lLen, lPop, lPush, lPushX, lRange, lRem, lSet, lTrim, rPop, rPopLPush, rPush, rPushX |
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisSetCommands |
sAdd, sCard, sDiff, sDiffStore, sInter, sInterStore, sIsMember, sMembers, sMove, sPop, sRandMember, sRem, sUnion, sUnionStore |
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisZSetCommands |
zAdd, zCard, zCount, zIncrBy, zInterStore, zInterStore, zRange, zRangeByScore, zRangeByScore, zRangeByScoreWithScore, zRangeByScoreWithScore, zRangeWithScore, zRank, zRem, zRemRange, zRemRangeByScore, zRevRange, zRevRangeWithScore, zRevRank, zScore, zUnionStore, zUnionStore |
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisHashCommands |
hDel, hExists, hGet, hGetAll, hIncrBy, hKeys, hLen, hMGet, hMSet, hSet, hSetNX, hVals |
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisServerCommands |
bgSave, bgWriteAof, dbSize, flushAll, flushDb, getConfig, info, lastSave, resetConfigStats, save, setConfig, shutdown |
exists
Boolean exists(byte[] key)
del
Long del(byte[]... keys)
type
DataType type(byte[] key)
keys
Collection<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)
ttl
Long ttl(byte[] key)
select
void select(int dbIndex)
echo
byte[] echo(byte[] message)
ping
String ping()
sort
List<byte[]> sort(byte[] key,
SortParameters params)
sort
Long sort(byte[] key,
SortParameters params,
byte[] storeKey)
Copyright © 2010-2011 SpringSource. All Rights Reserved.