Interface JavaWriteCache

All Known Implementing Classes:
DummyCache, JavaWriteCacheImpl

public interface JavaWriteCache
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Copy a cached entry from the previous cache to the new one.
    void
    write(String key, byte[] data)
    Save a new entry in the cache.
    void
    write(String key, InputStream data)
    Save a new entry in the cache.
  • Method Details

    • write

      void write(String key, InputStream data)
      Save a new entry in the cache. The stream will be consumed immediately.
    • write

      void write(String key, byte[] data)
      Save a new entry in the cache.
    • copyFromPrevious

      void copyFromPrevious(String key)
      Copy a cached entry from the previous cache to the new one.