Spring Data Key-Value

org.springframework.data.keyvalue.redis.core
Interface SetOperations<K,V>


public interface SetOperations<K,V>

Redis set specific operations.

Author:
Costin Leau

Method Summary
 Boolean add(K key, V value)
           
 Set<V> difference(K key, Collection<K> keys)
           
 void differenceAndStore(K key, K destKey, Collection<K> keys)
           
 RedisOperations<K,V> getOperations()
           
 Set<V> intersect(K key, Collection<K> keys)
           
 void intersectAndStore(K key, K destKey, Collection<K> keys)
           
 Boolean isMember(K key, Object o)
           
 Set<V> members(K key)
           
 Boolean move(K key, K destKey, V value)
           
 V pop(K key)
           
 V randomMember(K key)
           
 Boolean remove(K key, Object o)
           
 Long size(K key)
           
 Set<V> union(K key, Collection<K> keys)
           
 void unionAndStore(K key, K destKey, Collection<K> keys)
           
 

Method Detail

difference

Set<V> difference(K key,
                  Collection<K> keys)

differenceAndStore

void differenceAndStore(K key,
                        K destKey,
                        Collection<K> keys)

intersect

Set<V> intersect(K key,
                 Collection<K> keys)

intersectAndStore

void intersectAndStore(K key,
                       K destKey,
                       Collection<K> keys)

union

Set<V> union(K key,
             Collection<K> keys)

unionAndStore

void unionAndStore(K key,
                   K destKey,
                   Collection<K> keys)

add

Boolean add(K key,
            V value)

isMember

Boolean isMember(K key,
                 Object o)

members

Set<V> members(K key)

move

Boolean move(K key,
             K destKey,
             V value)

randomMember

V randomMember(K key)

remove

Boolean remove(K key,
               Object o)

pop

V pop(K key)

size

Long size(K key)

getOperations

RedisOperations<K,V> getOperations()

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.