Interface CacheStorage


  • public interface CacheStorage
    • Method Detail

      • 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)
        Fetches cache entry.
        Parameters:
        cacheId - Id of cache that contains the enty.
        requestURL - URL spec of the request.
        Returns:
        Response read from the cache.
      • requestEntries

        RequestEntriesResult requestEntries​(String cacheId,
                                            Integer skipCount,
                                            Integer pageSize)
        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.
        Returns:
        RequestEntriesResult