public class DataCache<V> extends LazyValueCache<Ref,V>
LazyValueCache.DataCacheEntry| Constructor and Description |
|---|
DataCache(java.lang.String name)
Creates a cache in which all resource data is always memory resident
|
DataCache(java.lang.String name, int cacheType, PersistenceHandler handler, DataCache<V> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Ref ref) |
void |
add(Ref ref, V value) |
V |
delete(Ref ref) |
V |
evaluateKey(Ref ref) |
V |
getValue(Ref ref) |
containsKey, get, getCacheType, getLazyValue, isEmpty, keySet, lazyValues, put, put, remove, shutdown, size, valuespublic DataCache(java.lang.String name)
public DataCache(java.lang.String name,
int cacheType,
PersistenceHandler handler,
DataCache<V> delegate)public void add(Ref ref, V value) throws AlreadyExistsException
AlreadyExistsExceptionpublic void add(Ref ref) throws AlreadyExistsException
AlreadyExistsExceptionpublic V delete(Ref ref) throws NotFoundException
NotFoundExceptionpublic V getValue(Ref ref) throws NotFoundException
NotFoundExceptionpublic V evaluateKey(Ref ref)
evaluateKey in class LazyValueCache<Ref,V>