public class SimpleCacheAdapter extends Object implements ICacheAdapter, ILogging
| Constructor and Description |
|---|
SimpleCacheAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String key) |
Object |
get(String key)
Gets the cached item from the HashMap using the key.
|
void |
initialize()
Intializes the HashMap for use.
|
void |
put(String key,
Object object)
Puts the item in the HashMap
|
void |
refresh()
Clears the HashMap
|
void |
remove(String key)
Removes the item from the HashMap with the key
|
public void initialize()
initialize in interface ICacheAdapterpublic void put(String key, Object object)
put in interface ICacheAdapterkey - Stringobject - Objectpublic Object get(String key)
get in interface ICacheAdapterkey - Stringpublic boolean contains(String key)
contains in interface ICacheAdapterpublic void remove(String key)
remove in interface ICacheAdapterkey - Stringpublic void refresh()
refresh in interface ICacheAdapterCopyright © 2012. All Rights Reserved.