|
Spring Data Key-Value | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.keyvalue.redis.support.collections.DefaultRedisMap<K,V>
public class DefaultRedisMap<K,V>
Default implementation for RedisMap
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
DefaultRedisMap(BoundHashOperations<String,K,V> boundOps)
Constructs a new DefaultRedisMap instance. |
|
DefaultRedisMap(String key,
RedisOperations<String,?> operations)
Constructs a new DefaultRedisMap instance. |
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<K,V>> |
entrySet()
|
boolean |
equals(Object o)
|
V |
get(Object key)
|
String |
getKey()
Returns the key associated with this entity. |
RedisOperations<String,?> |
getOperations()
Returns the underlying Redis operations used by the backing implementation. |
int |
hashCode()
|
Long |
increment(K key,
long delta)
|
boolean |
isEmpty()
|
Set<K> |
keySet()
|
V |
put(K key,
V value)
|
void |
putAll(Map<? extends K,? extends V> m)
|
V |
putIfAbsent(K key,
V value)
|
V |
remove(Object key)
|
boolean |
remove(Object key,
Object value)
|
V |
replace(K key,
V value)
|
boolean |
replace(K key,
V oldValue,
V newValue)
|
int |
size()
|
String |
toString()
|
Collection<V> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultRedisMap(String key, RedisOperations<String,?> operations)
DefaultRedisMap
instance.
key
- operations
- public DefaultRedisMap(BoundHashOperations<String,K,V> boundOps)
DefaultRedisMap
instance.
boundOps
- Method Detail |
---|
public Long increment(K key, long delta)
increment
in interface RedisMap<K,V>
public String getKey()
KeyBound
getKey
in interface KeyBound<String>
public RedisOperations<String,?> getOperations()
RedisStore
getOperations
in interface RedisStore
public void clear()
clear
in interface Map<K,V>
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public Set<Map.Entry<K,V>> entrySet()
entrySet
in interface Map<K,V>
public V get(Object key)
get
in interface Map<K,V>
public boolean isEmpty()
isEmpty
in interface Map<K,V>
public Set<K> keySet()
keySet
in interface Map<K,V>
public V put(K key, V value)
put
in interface Map<K,V>
public void putAll(Map<? extends K,? extends V> m)
putAll
in interface Map<K,V>
public V remove(Object key)
remove
in interface Map<K,V>
public int size()
size
in interface Map<K,V>
public Collection<V> values()
values
in interface Map<K,V>
public boolean equals(Object o)
equals
in interface Map<K,V>
equals
in class Object
public int hashCode()
hashCode
in interface Map<K,V>
hashCode
in class Object
public String toString()
toString
in class Object
public V putIfAbsent(K key, V value)
putIfAbsent
in interface ConcurrentMap<K,V>
public boolean remove(Object key, Object value)
remove
in interface ConcurrentMap<K,V>
public boolean replace(K key, V oldValue, V newValue)
replace
in interface ConcurrentMap<K,V>
public V replace(K key, V value)
replace
in interface ConcurrentMap<K,V>
|
Spring Data Key-Value | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |