Interface PhpReadCache

All Known Implementing Classes:
PhpReadCacheImpl

@Beta public interface PhpReadCache
  • 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.