Interface Cache

All Known Implementing Classes:
BackendCache

public interface Cache
Cache storage interface.
  • Method Details

    • has

      boolean has(String key)
      Parameters:
      key - cache key to check
      Returns:
      true if cache contains value under given key
    • get

      InputStream get(String key)
      Parameters:
      key - cache key
      Returns:
      stream of data stored under given key
    • set

      void set(String key, InputStream in)
      Parameters:
      key - cache key
      in - stream of data to store under given key
    • set

      void set(String key, String value)
      Parameters:
      key - cache key
      value - string value to store under given key
    • remove

      void remove(String key)
      Removes the data stored under given key.
      Parameters:
      key - cache key
    • changePrefix

      void changePrefix(String oldPrefix, String newPrefix)
      Changes the prefix of all cache entries stored under given prefix.
      Parameters:
      oldPrefix - cache key prefix to change
      newPrefix - new cache key prefix
    • removeByPrefix

      void removeByPrefix(String prefix)
      Removes all cache entries that share the same key prefix.
      Parameters:
      prefix - cache key prefix