| Constructor and Description |
|---|
EhConfiguredCache(String cacheName,
net.sf.ehcache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(K key,
V value)
Stores an entry into the cache.
|
long |
getCapacity()
Returns the capacity of the cache.
|
V |
getElement(K key)
Retrieves an entry for the cache.
|
long |
getSize() |
V |
removeElement(K key)
Removes an entry from the cache.
|
public EhConfiguredCache(String cacheName, net.sf.ehcache.CacheManager cacheManager)
public void addElement(K key, V value)
CacheaddElement in interface Cache<K,V>public V getElement(K key)
CachegetElement in interface Cache<K,V>public V removeElement(K key)
CacheremoveElement in interface Cache<K,V>key - The entry to return.public long getCapacity()
CachegetCapacity in interface Cache<K,V>Copyright © 2007-2012. All Rights Reserved.