Interface SecretCacheHook


public interface SecretCacheHook
Interface to hook the local in-memory cache. This interface will allow for clients to perform actions on the items being stored in the in-memory cache. One example would be encrypting/decrypting items stored in the in-memory cache.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(Object cachedObject)
    Derive the object from the cached object.
    Prepare the object for storing in the cache
  • Method Details

    • put

      Object put(Object o)
      Prepare the object for storing in the cache
      Parameters:
      o - The object being stored in the cache
      Returns:
      The object that should be stored in the cached
    • get

      Object get(Object cachedObject)
      Derive the object from the cached object.
      Parameters:
      cachedObject - The object stored in the cache
      Returns:
      The object that should be returned from the cache