public class AutoCache extends java.lang.Object implements ObjectCache
| Constructor and Description |
|---|
AutoCache()
Default contsructor required.
|
AutoCache(java.lang.String cacheType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clear(java.io.Serializable key)
Clears an object from the cache by key.
|
void |
clearAll()
Clears the entire cache.
|
java.lang.Object |
get(java.io.Serializable key)
Gets an object from the cache by key, or returns null if that object is
not cached.
|
java.lang.String |
getType()
Gets the common name of the type of objects to cache.
|
void |
put(java.io.Serializable key,
java.lang.Object object)
Adds an object to the cache.
|
void |
setType(java.lang.String cacheType)
Sets the common name of the type of objects to cache.
|
public AutoCache()
public AutoCache(java.lang.String cacheType)
public void setType(java.lang.String cacheType)
setType in interface ObjectCachepublic java.lang.String getType()
ObjectCachegetType in interface ObjectCachepublic void put(java.io.Serializable key,
java.lang.Object object)
put in interface ObjectCachepublic java.lang.Object get(java.io.Serializable key)
ObjectCacheget in interface ObjectCachepublic java.lang.Object clear(java.io.Serializable key)
ObjectCacheclear in interface ObjectCachepublic void clearAll()
ObjectCacheclearAll in interface ObjectCache