|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - Type of Keys stored in the cacheV - Type of Values stored in the cachepublic interface ICacheManager<K,V>
Provides a encapsulated view to concrete Caching technologies. By binding to this Interface concrete Caching technologies are completely pluggable.
| 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 |
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 |
store()
Stores a cache to some type of durable storage. |
Collection<V> |
values()
Returns all the values stored in the cache. |
| Method Detail |
|---|
boolean contains(K k)
k - the Key to check
void put(org.yestech.lib.util.Pair<K,V> entry)
entry - Key and Value pair to add (Key is Pair.getFirst() and Value is
Pair.getSecond().
void put(K k,
V v)
k - Key that the value will be associated byv - Value to be cachedvoid putAll(Map<K,V> collection)
collection - Collection of Keys/Values to addV get(K key)
key - Key to lookup
void flushAll()
void flush(K key)
key - Key to flushCollection<K> keys()
Collection<V> values()
@PreDestroy void store()
@PostConstruct void load()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||