Convenience interface for access the Redis datastore.
Type | Name and description |
---|---|
RedisTemplate |
redisTemplate |
Type | Name and description |
---|---|
java.util.Collection |
entities(java.lang.Class type, java.lang.String key, int offset = 0, int max = -1) Returns an entity list from the specified key. |
java.util.Collection |
entities(java.lang.Class type, RedisCollection col, int offset = 0, int max = -1) Returns entities from the specified type and Redis collection. |
java.lang.Object |
getAt(java.lang.String s) |
RedisMap |
hash(java.lang.String key) Creates a hash for the given key. |
RedisList |
list(java.lang.String key) Creates a Redis list for the given key. |
RedisSet |
set(java.lang.String key) Creates a Redis set for the given key. |
java.lang.Object |
setAt(java.lang.String s, java.lang.Object v) |
void |
setDatastore(Datastore ds) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns an entity list from the specified key.
key
- the keyReturns entities from the specified type and Redis collection.
type
- The typecol
- The collectionoffset
- The offsetmax
- The maxCreates a hash for the given key.
key
- the keyCreates a Redis list for the given key.
key
- the keyCreates a Redis set for the given key.
key
- the key