public class RedisL2Cache<T> extends Object implements L2Cache<T>
Copyright © Enremmeta LLC 2015. All Rights Reserved.
Modifier and Type | Field and Description |
---|---|
private int |
curVarzaPtr |
(package private) RedisFetchOp<T> |
fetchOp |
private int |
poolSize |
private int |
poolTtlMinutes |
private RedisServiceConfig |
redisConfig |
private com.lambdaworks.redis.RedisAsyncConnection<String,String>[] |
varzas |
Constructor and Description |
---|
RedisL2Cache(RedisServiceConfig redisConfig,
RedisFetchOp<T> fetchOp) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Future<T> |
get(String key) |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> |
getConnection() |
int |
getCurVarzaPtr()
Completely threadunsafe.
|
void |
refreshPool()
Disconnect and reconnect.
|
private final RedisServiceConfig redisConfig
final RedisFetchOp<T> fetchOp
private final int poolSize
private final int poolTtlMinutes
private int curVarzaPtr
public RedisL2Cache(RedisServiceConfig redisConfig, RedisFetchOp<T> fetchOp)
public int getCurVarzaPtr()
public void refreshPool()
L2Cache
refreshPool
in interface L2Cache<T>