@Service public class RedisListCacheHandler extends RedisAbstractCacheHandler implements co.bittub.prime.cache.redis.ListCacheHandler
client| Constructor and Description |
|---|
RedisListCacheHandler(io.lettuce.core.RedisClient client) |
| Modifier and Type | Method and Description |
|---|---|
co.bittub.prime.cache.CacheItem |
popLeft(String key) |
co.bittub.prime.cache.CacheItem |
popRight(String key) |
long |
pushLeft(String key,
Object... values) |
long |
pushRight(String key,
Object... values) |
List<co.bittub.prime.cache.CacheItem> |
range(String key,
long start,
long stop) |
long |
size(String key) |
getConnection@Autowired public RedisListCacheHandler(io.lettuce.core.RedisClient client)
public long pushLeft(String key, Object... values)
pushLeft in interface co.bittub.prime.cache.redis.ListCacheHandlerpublic long pushRight(String key, Object... values)
pushRight in interface co.bittub.prime.cache.redis.ListCacheHandlerpublic co.bittub.prime.cache.CacheItem popLeft(String key)
popLeft in interface co.bittub.prime.cache.redis.ListCacheHandlerpublic co.bittub.prime.cache.CacheItem popRight(String key)
popRight in interface co.bittub.prime.cache.redis.ListCacheHandlerpublic List<co.bittub.prime.cache.CacheItem> range(String key, long start, long stop)
range in interface co.bittub.prime.cache.redis.ListCacheHandlerpublic long size(String key)
size in interface co.bittub.prime.cache.redis.ListCacheHandlerCopyright © 2018. All rights reserved.