Interface ICacheStorage
- Namespace
- Selenium.WebDriver.BiDi.Cdp.CacheStorage
- Assembly
- Selenium.WebDriver.BiDi.Cdp.dll
[Experimental("BIDICDP001")]
public interface ICacheStorage
Methods
DeleteCacheAsync(CacheId, string?, CancellationToken)
Deletes a cache.
Task<DeleteCacheResult> DeleteCacheAsync(CacheId cacheId, string? session = null, CancellationToken cancellationToken = default)
Parameters
cacheIdCacheIdId of cache for deletion.
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<DeleteCacheResult>
A task representing the asynchronous operation, containing a DeleteCacheResult.
DeleteEntryAsync(CacheId, string, string?, CancellationToken)
Deletes a cache entry.
Task<DeleteEntryResult> DeleteEntryAsync(CacheId cacheId, string request, string? session = null, CancellationToken cancellationToken = default)
Parameters
cacheIdCacheIdId of cache where the entry will be deleted.
requeststringURL spec of the request.
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<DeleteEntryResult>
A task representing the asynchronous operation, containing a DeleteEntryResult.
RequestCacheNamesAsync(string?, string?, StorageBucket?, string?, CancellationToken)
Requests cache names.
Task<RequestCacheNamesResult> RequestCacheNamesAsync(string? securityOrigin = null, string? storageKey = null, StorageBucket? storageBucket = null, string? session = null, CancellationToken cancellationToken = default)
Parameters
securityOriginstringAt least and at most one of securityOrigin, storageKey, storageBucket must be specified. Security origin.
storageKeystringStorage key.
storageBucketStorageBucketStorage bucket. If not specified, it uses the default bucket.
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<RequestCacheNamesResult>
A task representing the asynchronous operation, containing a RequestCacheNamesResult.
RequestCachedResponseAsync(CacheId, string, ImmutableArray<Header>, string?, CancellationToken)
Fetches cache entry.
Task<RequestCachedResponseResult> RequestCachedResponseAsync(CacheId cacheId, string requestURL, ImmutableArray<Header> requestHeaders, string? session = null, CancellationToken cancellationToken = default)
Parameters
cacheIdCacheIdId of cache that contains the entry.
requestURLstringURL spec of the request.
requestHeadersImmutableArray<Header>headers of the request.
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<RequestCachedResponseResult>
A task representing the asynchronous operation, containing a RequestCachedResponseResult.
RequestEntriesAsync(CacheId, long?, long?, string?, string?, CancellationToken)
Requests data from cache.
Task<RequestEntriesResult> RequestEntriesAsync(CacheId cacheId, long? skipCount = null, long? pageSize = null, string? pathFilter = null, string? session = null, CancellationToken cancellationToken = default)
Parameters
cacheIdCacheIdID of cache to get entries from.
skipCountlong?Number of records to skip.
pageSizelong?Number of records to fetch.
pathFilterstringIf present, only return the entries containing this substring in the path
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<RequestEntriesResult>
A task representing the asynchronous operation, containing a RequestEntriesResult.