Interface SharedData


public interface SharedData
SharedData is used to access a model's, or globally, shared cache.
  • Method Details

    • get

      CacheResult get(String key)
      Retrieves an existing object from the cache.
      Parameters:
      key - the key mapping to a value.
      Returns:
      A cache result.
    • put

      CacheResult put(String key, byte[] value)
      Put a new key/value mapping into the cache.
      Parameters:
      key - the key mapping to a value.
      value - the value.
      Returns:
      a cache result.
    • remove

      CacheResult remove(String key)
      Remove a key/value mapping from the cache.
      Parameters:
      key - the key mapping to a value.
      Returns:
      a cache result.
    • clear

      CacheResult clear()
      Clear the shared data cache.
      Returns:
      a cache result.