|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GeneralDataRegion
Contract for general-purpose cache regions.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.hibernate.cache.spi.Region |
|---|
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap |
| Method Detail |
|---|
Object get(Object key)
throws CacheException
key - The key of the item to be retrieved.
CacheException - Indicates a problem accessing the item or region.
void put(Object key,
Object value)
throws CacheException
key - The key under which to cache the item.value - The item to cache.
CacheException - Indicates a problem accessing the region.
void evict(Object key)
throws CacheException
key - The key of the item to remove
CacheException - Indicates a problem accessing the item or region.
void evictAll()
throws CacheException
CacheException - Indicates problem accessing the region.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||