Interface SharedData


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

      Modifier and Type Method Description
      CacheResult clear()
      Clear the shared data cache.
      CacheResult get​(java.lang.String key)
      Retrieves an existing object from the cache.
      CacheResult put​(java.lang.String key, byte[] value)
      Put a new key/value mapping into the cache.
      CacheResult remove​(java.lang.String key)
      Remove a key/value mapping from the cache.
    • Method Detail

      • get

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

        CacheResult put​(java.lang.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​(java.lang.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.