|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.mstor.util.CacheAdapter
net.fortuna.mstor.util.EhCacheAdapter
public class EhCacheAdapter
A CacheAdapter implementation that uses the Ehcache library.
| Constructor Summary | |
|---|---|
EhCacheAdapter(java.lang.String cacheName)
|
|
| Method Summary | |
|---|---|
void |
clearCache()
Clears the cache. |
void |
putObjectIntoCache(int index,
java.lang.Object object)
Puts the object in the cache. |
java.lang.Object |
retrieveObjectFromCache(int index)
Retrieves the object from cache (if it's there). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EhCacheAdapter(java.lang.String cacheName)
| Method Detail |
|---|
public void clearCache()
clearCache in class CacheAdapterpublic java.lang.Object retrieveObjectFromCache(int index)
CacheAdapter
retrieveObjectFromCache in class CacheAdapterindex - the index of the required object
public void putObjectIntoCache(int index,
java.lang.Object object)
CacheAdapter
putObjectIntoCache in class CacheAdapterindex - the index of the objectobject - the object that is to be cached
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||