Table of Contents

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

cacheId CacheId

Id of cache for deletion.

session string

Optional CDP session override.

cancellationToken CancellationToken

A 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

cacheId CacheId

Id of cache where the entry will be deleted.

request string

URL spec of the request.

session string

Optional CDP session override.

cancellationToken CancellationToken

A 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

securityOrigin string

At least and at most one of securityOrigin, storageKey, storageBucket must be specified. Security origin.

storageKey string

Storage key.

storageBucket StorageBucket

Storage bucket. If not specified, it uses the default bucket.

session string

Optional CDP session override.

cancellationToken CancellationToken

A 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

cacheId CacheId

Id of cache that contains the entry.

requestURL string

URL spec of the request.

requestHeaders ImmutableArray<Header>

headers of the request.

session string

Optional CDP session override.

cancellationToken CancellationToken

A 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

cacheId CacheId

ID of cache to get entries from.

skipCount long?

Number of records to skip.

pageSize long?

Number of records to fetch.

pathFilter string

If present, only return the entries containing this substring in the path

session string

Optional CDP session override.

cancellationToken CancellationToken

A token to cancel the asynchronous operation.

Returns

Task<RequestEntriesResult>

A task representing the asynchronous operation, containing a RequestEntriesResult.