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 Object
A generic wrapper for the Java Caching System (JCS).
Author:
Jeremy Long
  • Method Details

    • get

      public T get(String key)
      Gets an object from the cache.
      Parameters:
      key - the key for the cached object
      Returns:
      the cached object
    • put

      public void put(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