Interface CacheStorage


public interface CacheStorage
  • Method Details

    • deleteCache

      void deleteCache(String cacheId)
      Deletes a cache.
      Parameters:
      cacheId - Id of cache for deletion.
    • deleteEntry

      void deleteEntry(String cacheId, String request)
      Deletes a cache entry.
      Parameters:
      cacheId - Id of cache where the entry will be deleted.
      request - URL spec of the request.
    • requestCacheNames

      List<Cache> requestCacheNames(String securityOrigin)
      Requests cache names.
      Parameters:
      securityOrigin - Security origin.
      Returns:
      Caches for the security origin.
    • requestCachedResponse

      CachedResponse requestCachedResponse(String cacheId, String requestURL, List<Header> requestHeaders)
      Fetches cache entry.
      Parameters:
      cacheId - Id of cache that contains the entry.
      requestURL - URL spec of the request.
      requestHeaders - headers of the request.
      Returns:
      Response read from the cache.
    • requestEntries

      RequestEntriesResult requestEntries(String cacheId)
      Requests data from cache.
      Parameters:
      cacheId - ID of cache to get entries from.
      Returns:
      RequestEntriesResult
    • requestEntries

      RequestEntriesResult requestEntries(String cacheId, Integer skipCount, Integer pageSize, String pathFilter)
      Requests data from cache.
      Parameters:
      cacheId - ID of cache to get entries from.
      skipCount - Number of records to skip.
      pageSize - Number of records to fetch.
      pathFilter - If present, only return the entries containing this substring in the path
      Returns:
      RequestEntriesResult