|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.scooterframework.cache.DefaultCacheStore
public class DefaultCacheStore
DefaultCacheStore class provides convenient access to default cache.
The default cache provider is defined by default.cache.provider.name property and the default cache name is defined by default.cache.name.
All methods signatures are the same as those defined in Cache interface except that they are all static here.
The default cache and its provider are defined in environment.properties file.
Constructor Summary | |
---|---|
DefaultCacheStore()
|
Method Summary | |
---|---|
static void |
clear()
Removes all key/value pairs from cache. |
static java.lang.Object |
get(java.lang.Object key)
Returns object from cache based on key. |
static java.util.Collection<java.lang.Object> |
getKeys()
Returns keys in the cache |
static java.lang.String |
getName()
Returns the cache name. |
static boolean |
put(java.lang.Object key,
java.lang.Object obj)
Stores object into cache based on key. |
static boolean |
remove(java.lang.Object key)
Removes the mapping for this key from the cache if present. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCacheStore()
Method Detail |
---|
public static java.lang.String getName()
public static java.util.Collection<java.lang.Object> getKeys()
public static java.lang.Object get(java.lang.Object key)
public static boolean put(java.lang.Object key, java.lang.Object obj)
public static boolean remove(java.lang.Object key)
public static void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |