|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shiftone.cache.adaptor.OSCache
Constructor Summary | |
OSCache(com.opensymphony.oscache.base.Cache cache)
|
Method Summary | |
void |
addObject(java.lang.Object key,
java.lang.Object cacheObject)
adds an object to the cache |
void |
clear()
Removes ALL keys and values from the cache. |
static Cache |
createFifo(int capacity)
|
java.lang.Object |
getObject(java.lang.Object key)
gets the value stored in the cache by it's key, or null if the key is not found. |
void |
remove(java.lang.Object key)
remove a specific key/value pair from the cache |
int |
size()
The number of key/value pares in the cache |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OSCache(com.opensymphony.oscache.base.Cache cache)
Method Detail |
public static Cache createFifo(int capacity)
public void addObject(java.lang.Object key, java.lang.Object cacheObject)
Cache
addObject
in interface Cache
public java.lang.Object getObject(java.lang.Object key)
Cache
getObject
in interface Cache
public int size()
Cache
size
in interface Cache
public void remove(java.lang.Object key)
Cache
remove
in interface Cache
public void clear()
Cache
clear
in interface Cache
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |