Class DataCache<T>
- java.lang.Object
- 
- org.owasp.dependencycheck.data.cache.DataCache<T>
 
- 
- Type Parameters:
- T- the object type that will be cached
 
 public class DataCache<T> extends java.lang.ObjectA generic wrapper for the Java Caching System (JCS).- Author:
- Jeremy Long
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(java.lang.String key)Gets an object from the cache.voidput(java.lang.String key, T content)Puts an object into the cache.
 
- 
- 
- 
Constructor Detail- 
DataCachepublic DataCache(org.apache.commons.jcs3.access.CacheAccess<java.lang.String,T> cache) Creates a new generic JCS wrapper.- Parameters:
- cache- a reference to the underlying cache implementation.
 
 
- 
 - 
Method Detail- 
getpublic T get(java.lang.String key) Gets an object from the cache.- Parameters:
- key- the key for the cached object
- Returns:
- the cached object
 
 - 
putpublic void put(java.lang.String key, T content)Puts an object into the cache.- Parameters:
- key- the key for the cached object
- content- the object to put into the cache
 
 
- 
 
-