org.springframework.datastore.redis.collection
Class RedisMap
java.lang.Object
java.util.AbstractMap
org.springframework.datastore.redis.collection.RedisMap
- All Implemented Interfaces:
- Map
public class RedisMap
- extends AbstractMap
A map that is backed onto a Redis hash
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values |
RedisMap
public RedisMap(RedisTemplate template,
String redisKey)
entrySet
public Set entrySet()
- Specified by:
entrySet
in interface Map
- Specified by:
entrySet
in class AbstractMap
put
public Object put(Object key,
Object value)
- Specified by:
put
in interface Map
- Overrides:
put
in class AbstractMap
remove
public Object remove(Object key)
- Specified by:
remove
in interface Map
- Overrides:
remove
in class AbstractMap
get
public Object get(Object key)
- Specified by:
get
in interface Map
- Overrides:
get
in class AbstractMap
size
public int size()
- Specified by:
size
in interface Map
- Overrides:
size
in class AbstractMap