org.hibernate.cache.GeneralDataRegion |
Known Indirect Subclasses
|
Class Overview
Contract for general-purpose cache regions.
Summary
Public Methods |
abstract
void
|
evict(Object key)
Evict an item from the cache immediately (without regard for transaction
isolation).
|
abstract
void
|
evictAll()
Evict all contents of this particular cache region (without regard for transaction
isolation).
|
abstract
Object
|
get(Object key)
Get an item from the cache.
|
abstract
void
|
put(Object key, Object value)
Put an item into the cache.
|
Public Methods
public
abstract
void
evict
(Object key)
Evict an item from the cache immediately (without regard for transaction
isolation).
Parameters
key
| The key of the item to remove |
public
abstract
void
evictAll
()
Evict all contents of this particular cache region (without regard for transaction
isolation).
public
abstract
Object
get
(Object key)
Get an item from the cache.
Parameters
key
| The key of the item to be retrieved. |
Returns
- the cached object or null
public
abstract
void
put
(Object key, Object value)
Put an item into the cache.
Parameters
key
| The key under which to cache the item. |
value
| The item to cache. |