org.hibernate.cache.impl.bridge
Class BaseGeneralDataRegionAdapter
- GeneralDataRegion, Region
public abstract class BaseGeneralDataRegionAdapter
void | evict(Object key)- Evict an item from the cache immediately (without regard for transaction
isolation).
|
void | evictAll()- Evict all contents of this particular cache region (without regard for transaction
isolation).
|
Object | get(Object key)- Get an item from the cache.
|
void | put(Object key, Object value)- Put an item into the cache.
|
BaseGeneralDataRegionAdapter
protected BaseGeneralDataRegionAdapter(Cache underlyingCache,
Settings settings)
evict
public void evict(Object key)
throws CacheException Evict an item from the cache immediately (without regard for transaction
isolation).
- evict in interface GeneralDataRegion
key - The key of the item to remove
get
public Object get(Object key)
throws CacheException Get an item from the cache.
- get in interface GeneralDataRegion
key - The key of the item to be retrieved.
- the cached object or null
put
public void put(Object key,
Object value)
throws CacheException Put an item into the cache.
- put in interface GeneralDataRegion
key - The key under which to cache the item.value - The item to cache.