org.springframework.data.redis.connection
Interface RedisSetCommands

All Known Subinterfaces:
RedisCommands, RedisConnection, StringRedisConnection
All Known Implementing Classes:
DefaultStringRedisConnection, JedisConnection, JredisConnection, RjcConnection

public interface RedisSetCommands

Set-specific commands supported by Redis.


Method Summary
 Boolean sAdd(byte[] key, byte[] value)
           
 Long sCard(byte[] key)
           
 Set<byte[]> sDiff(byte[]... keys)
           
 void sDiffStore(byte[] destKey, byte[]... keys)
           
 Set<byte[]> sInter(byte[]... keys)
           
 void sInterStore(byte[] destKey, byte[]... keys)
           
 Boolean sIsMember(byte[] key, byte[] value)
           
 Set<byte[]> sMembers(byte[] key)
           
 Boolean sMove(byte[] srcKey, byte[] destKey, byte[] value)
           
 byte[] sPop(byte[] key)
           
 byte[] sRandMember(byte[] key)
           
 Boolean sRem(byte[] key, byte[] value)
           
 Set<byte[]> sUnion(byte[]... keys)
           
 void sUnionStore(byte[] destKey, byte[]... keys)
           
 

Method Detail

sAdd

Boolean sAdd(byte[] key,
             byte[] value)

sRem

Boolean sRem(byte[] key,
             byte[] value)

sPop

byte[] sPop(byte[] key)

sMove

Boolean sMove(byte[] srcKey,
              byte[] destKey,
              byte[] value)

sCard

Long sCard(byte[] key)

sIsMember

Boolean sIsMember(byte[] key,
                  byte[] value)

sInter

Set<byte[]> sInter(byte[]... keys)

sInterStore

void sInterStore(byte[] destKey,
                 byte[]... keys)

sUnion

Set<byte[]> sUnion(byte[]... keys)

sUnionStore

void sUnionStore(byte[] destKey,
                 byte[]... keys)

sDiff

Set<byte[]> sDiff(byte[]... keys)

sDiffStore

void sDiffStore(byte[] destKey,
                byte[]... keys)

sMembers

Set<byte[]> sMembers(byte[] key)

sRandMember

byte[] sRandMember(byte[] key)