|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.yestech.cache.impl.JCSCacheManager<K,V>
public class JCSCacheManager<K,V>
Cache Manager for Apache jcs
| Constructor Summary | |
|---|---|
JCSCacheManager()
|
|
| Method Summary | |
|---|---|
boolean |
contains(K k)
Checks is a Key is present in the cache. |
void |
flush(K key)
Flush the Value associated with the Key from the Cache |
void |
flushAll()
Flushes the entire cache |
V |
get(K key)
Return the Value associated with the Key |
org.apache.jcs.JCS |
getCache()
|
Collection<K> |
keys()
Returns all the Keys found in the Cache. |
void |
load()
Loads a cache from some type of durable storage. |
void |
put(K k,
V v)
Puts a Key/Value into the cache, overriding any value the might already be associated with the Key. |
void |
put(org.yestech.lib.util.Pair<K,V> entry)
Puts a Key/Value into the cache, overriding any value the might already be associated with the Key. |
void |
putAll(Map<K,V> collection)
Puts a Collection of Key/Value Pairs into the cache. |
void |
setCache(org.apache.jcs.JCS cache)
|
void |
store()
Stores a cache to some type of durable storage. |
Collection<V> |
values()
Returns all the values stored in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCSCacheManager()
| Method Detail |
|---|
public org.apache.jcs.JCS getCache()
public void setCache(org.apache.jcs.JCS cache)
public V get(K key)
ICacheManager
get in interface ICacheManager<K,V>key - Key to lookup
public void flushAll()
ICacheManager
flushAll in interface ICacheManager<K,V>public void flush(K key)
ICacheManager
flush in interface ICacheManager<K,V>key - Key to flushpublic void putAll(Map<K,V> collection)
ICacheManager
putAll in interface ICacheManager<K,V>collection - Collection of Keys/Values to addpublic void put(org.yestech.lib.util.Pair<K,V> entry)
ICacheManager
put in interface ICacheManager<K,V>entry - Key and Value pair to add (Key is Pair.getFirst() and Value is
Pair.getSecond().
public void put(K k,
V v)
ICacheManager
put in interface ICacheManager<K,V>k - Key that the value will be associated byv - Value to be cachedpublic boolean contains(K k)
ICacheManager
contains in interface ICacheManager<K,V>k - the Key to check
public Collection<K> keys()
ICacheManager
keys in interface ICacheManager<K,V>public Collection<V> values()
ICacheManager
values in interface ICacheManager<K,V>public void store()
store in interface ICacheManager<K,V>public void load()
load in interface ICacheManager<K,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||