Interface CacheStore


@ProviderType @Deprecated(since="2026-01-01") public interface CacheStore
Deprecated.
This API is not supported anymore.
Creates, manages and deletes cache files.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String key, Headers headers)
    Deprecated.
    Create a new cache file.
    boolean
    Deprecated.
    Evict some cache file.
    void
    evictAll(String host, String path)
    Deprecated.
    Evict all cache files starting with a given path.
    Deprecated.
    Lookup an existing cache file.
  • Method Details

    • create

      CacheFile create(String key, Headers headers) throws IOException
      Deprecated.
      Create a new cache file.
      Parameters:
      key - cache key
      headers - response headers
      Returns:
      new cache file
      Throws:
      IOException - if an I/O error occurs
    • lookup

      CacheFile lookup(String key)
      Deprecated.
      Lookup an existing cache file.
      Parameters:
      key - cache key
      Returns:
      existing cache file or null
    • evict

      boolean evict(String key)
      Deprecated.
      Evict some cache file.
      Parameters:
      key - cache key
      Returns:
      true if some file was evicted; false otherwise
    • evictAll

      void evictAll(String host, String path)
      Deprecated.
      Evict all cache files starting with a given path.
      Parameters:
      host - hostname
      path - path prefix