T - the object type that will be cachedpublic class DataCache<T>
extends java.lang.Object
| Constructor and Description |
|---|
DataCache(org.apache.commons.jcs3.access.CacheAccess<java.lang.String,T> cache)
Creates a new generic JCS wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get(java.lang.String key)
Gets an object from the cache.
|
void |
put(java.lang.String key,
T content)
Puts an object into the cache.
|
public DataCache(org.apache.commons.jcs3.access.CacheAccess<java.lang.String,T> cache)
cache - a reference to the underlying cache implementation.public T get(java.lang.String key)
key - the key for the cached objectpublic void put(java.lang.String key,
T content)
key - the key for the cached objectcontent - the object to put into the cacheCopyright© 2012-21 Jeremy Long. All Rights Reserved.