|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.common.cache.ehcache.EhConfiguredCache<K,V>
public class EhConfiguredCache<K,V>
Produces a cache configured from ehcache.
| Constructor Summary | |
|---|---|
EhConfiguredCache(String cacheName,
net.sf.ehcache.CacheManager cacheManager)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EhConfiguredCache(String cacheName,
net.sf.ehcache.CacheManager cacheManager)
| Method Detail |
|---|
public void addElement(K key,
V value)
Cache
addElement in interface Cache<K,V>public V getElement(K key)
Cache
getElement in interface Cache<K,V>public V removeElement(K key)
Cache
removeElement in interface Cache<K,V>key - The entry to return.
public long getCapacity()
Cache
getCapacity in interface Cache<K,V>public long getSize()
getSize in interface Cache<K,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||