public class CountCache extends AbstractCache<java.util.List<java.lang.String>,java.lang.Long>
DEFAULT_CACHE_ON, DEFAULT_CACHE_TTL, DEFAULT_CONCURRENCY_LEVEL, DEFAULT_MAX_CACHE_SIZE, DEFAULT_START_CACHE_SIZE
Constructor and Description |
---|
CountCache() |
CountCache(int concurrencyLevel,
int cacheStartSize,
int cacheMaxSize,
long ttl) |
Modifier and Type | Method and Description |
---|---|
void |
merge(java.util.List<java.lang.String> key,
java.lang.Long data,
java.lang.Long returnedVal)
merge the doc into the current cached item, if it exists.
|
clear, get, keySet, put, remove, removeAll, setCacheMode
public CountCache()
public CountCache(int concurrencyLevel, int cacheStartSize, int cacheMaxSize, long ttl)
concurrencyLevel
- cache concurreny levelcacheStartSize
- starting cache sizecacheMaxSize
- the initial size of the cache.ttl
- expiration time for cache entries in millisecondspublic void merge(java.util.List<java.lang.String> key, java.lang.Long data, java.lang.Long returnedVal)
AbstractCache
merge
in class AbstractCache<java.util.List<java.lang.String>,java.lang.Long>
key
- the key into the cachedata
- the changed itemsreturnedVal
- the returned resultCopyright © 2010 - 2020 Adobe. All Rights Reserved