class PerConnectionLRUFactory.PerConnectionLRU extends Object implements CacheAdapter<String,QueryInfo>
| Modifier and Type | Field and Description |
|---|---|
private LRUCache<String,QueryInfo> |
cache |
private int |
cacheSqlLimit |
private Object |
syncMutex |
| Modifier | Constructor and Description |
|---|---|
protected |
PerConnectionLRU(Object syncMutex,
int cacheMaxSize,
int maxKeySize) |
| Modifier and Type | Method and Description |
|---|---|
QueryInfo |
get(String key) |
void |
invalidate(String key) |
void |
invalidateAll() |
void |
invalidateAll(Set<String> keys) |
void |
put(String key,
QueryInfo value) |
private final int cacheSqlLimit
private final Object syncMutex
protected PerConnectionLRU(Object syncMutex, int cacheMaxSize, int maxKeySize)
public void put(String key, QueryInfo value)
put in interface CacheAdapter<String,QueryInfo>public void invalidate(String key)
invalidate in interface CacheAdapter<String,QueryInfo>public void invalidateAll(Set<String> keys)
invalidateAll in interface CacheAdapter<String,QueryInfo>public void invalidateAll()
invalidateAll in interface CacheAdapter<String,QueryInfo>