Interface JavaReadCache

All Known Implementing Classes:
DummyCache, JavaReadCacheImpl

public interface JavaReadCache
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether the cache contains the provided key.
    read(String key)
    Returns an input stream for the data cached with the provided key.
    byte[]
     
  • Method Details

    • read

      InputStream read(String key)
      Returns an input stream for the data cached with the provided key. It is the responsibility of the caller to close the stream.
    • readBytes

      @CheckForNull byte[] readBytes(String key)
      Returns:
      the array of bytes stored for the given key, if any. null otherwise.
    • contains

      boolean contains(String key)
      Checks whether the cache contains the provided key.