Spring Data Key-Value

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.data.keyvalue.redis.connection.RedisListCommands
RedisListCommands.Position
 
Nested classes/interfaces inherited from interface org.springframework.data.keyvalue.redis.connection.RedisZSetCommands
RedisZSetCommands.Aggregate, RedisZSetCommands.Tuple
 
Method Summary
 Long del(byte[]... keys)
           
 byte[] echo(byte[] message)
           
 Boolean exists(byte[] key)
           
 Boolean expire(byte[] key, long seconds)
           
 Boolean expireAt(byte[] key, long unixTime)
           
 Collection<byte[]> keys(byte[] pattern)
           
 Boolean persist(byte[] key)
           
 String ping()
           
 byte[] randomKey()
           
 void rename(byte[] oldName, byte[] newName)
           
 Boolean renameNX(byte[] oldName, byte[] newName)
           
 void select(int dbIndex)
           
 List<byte[]> sort(byte[] key, SortParameters params)
           
 Long sort(byte[] key, SortParameters params, byte[] storeKey)
           
 Long ttl(byte[] key)
           
 DataType type(byte[] key)
           
 
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisTxCommands
discard, exec, multi, unwatch, watch
 
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
 
Methods inherited from interface org.springframework.data.keyvalue.redis.connection.RedisPubSubCommands
getSubscription, isSubscribed, pSubscribe, publish, subscribe
 

Method Detail

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)

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.