org.hibernate.cache
Interface GeneralDataRegion
- Region
- QueryResultsRegion, TimestampsRegion
- BaseGeneralDataRegionAdapter, QueryResultsRegionAdapter, TimestampsRegionAdapter
public interface GeneralDataRegion
Contract for general-purpose cache regions.
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.
|
evict
public void evict(Object key)
throws CacheException
Evict an item from the cache immediately (without regard for transaction
isolation).
key
- The key of the item to remove
evictAll
public void evictAll()
throws CacheException
Evict all contents of this particular cache region (without regard for transaction
isolation).
get
public Object get(Object key)
throws CacheException
Get an item from the cache.
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.
key
- The key under which to cache the item.value
- The item to cache.