Interface CacheStorage

All Known Implementing Classes:
CacheStorageImpl

public interface CacheStorage
  • Method Summary

    Modifier and Type Method Description
    void deleteCache​(java.lang.String cacheId)
    Deletes a cache.
    void deleteEntry​(java.lang.String cacheId, java.lang.String request)
    Deletes a cache entry.
    CachedResponse requestCachedResponse​(java.lang.String cacheId, java.lang.String requestURL, java.util.List<Header> requestHeaders)
    Fetches cache entry.
    java.util.List<Cache> requestCacheNames​(java.lang.String securityOrigin)
    Requests cache names.
    RequestEntriesResult requestEntries​(java.lang.String cacheId)
    Requests data from cache.
    RequestEntriesResult requestEntries​(java.lang.String cacheId, java.lang.Integer skipCount, java.lang.Integer pageSize, java.lang.String pathFilter)
    Requests data from cache.
  • Method Details

    • deleteCache

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

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

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

      CachedResponse requestCachedResponse​(java.lang.String cacheId, java.lang.String requestURL, java.util.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​(java.lang.String cacheId, java.lang.Integer skipCount, java.lang.Integer pageSize, java.lang.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
    • requestEntries

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