Package io.webfolder.cdp.command
Interface CacheStorageAsync
public interface CacheStorageAsync
-
Method Summary
Modifier and TypeMethodDescriptiondeleteCache
(String cacheId) Deletes a cache.deleteEntry
(String cacheId, String request) Deletes a cache entry.requestCachedResponse
(String cacheId, String requestURL, List<Header> requestHeaders) Fetches cache entry.requestCacheNames
(String securityOrigin) Requests cache names.requestEntries
(String cacheId) Requests data from cache.requestEntries
(String cacheId, Integer skipCount, Integer pageSize, String pathFilter) Requests data from cache.
-
Method Details
-
deleteCache
Deletes a cache.- Parameters:
cacheId
- Id of cache for deletion.
-
deleteEntry
Deletes a cache entry.- Parameters:
cacheId
- Id of cache where the entry will be deleted.request
- URL spec of the request.
-
requestCacheNames
Requests cache names.- Parameters:
securityOrigin
- Security origin.- Returns:
- Caches for the security origin.
-
requestCachedResponse
CompletableFuture<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
Requests data from cache.- Parameters:
cacheId
- ID of cache to get entries from.- Returns:
- RequestEntriesResult
-
requestEntries
CompletableFuture<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
-