org.springframework.data.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.


Method Summary
 Long del(byte[]... keys)
           
 Boolean exists(byte[] key)
           
 Boolean expire(byte[] key, long seconds)
           
 Boolean expireAt(byte[] key, long unixTime)
           
 Set<byte[]> keys(byte[] pattern)
           
 Boolean move(byte[] key, int dbIndex)
           
 Boolean persist(byte[] key)
           
 byte[] randomKey()
           
 void rename(byte[] oldName, byte[] newName)
           
 Boolean renameNX(byte[] oldName, byte[] newName)
           
 List<byte[]> sort(byte[] key, SortParameters params)
           
 Long sort(byte[] key, SortParameters params, byte[] storeKey)
           
 Long ttl(byte[] key)
           
 DataType type(byte[] key)
           
 

Method Detail

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)