net.sf.ehcache.store
public interface Store
Version: $Id: Store.java 51 2006-04-24 09:21:10Z gregluck $
| Method Summary | |
|---|---|
| boolean | containsKey(Object key)
A check to see if a key is in the Store.
|
| void | dispose()
Prepares for shutdown. |
| Element | get(Object key)
Gets an item from the cache. |
| int | getSize()
Returns the current store size. |
| Status | getStatus()
Returns the cache status. |
| void | put(Element element)
Puts an item into the cache. |
| Element | remove(Object key)
Removes an item from the cache.
|
| void | removeAll()
Remove all of the elements from the store.
|
Parameters: key The Element key
Returns: true if found. No check is made to see if the Element is expired. 1.2
Since: signature changed in 1.2 from boolean to Element to support notifications
CacheEventListeners they are notified of the expiry or removal
of the Element as each is removed.