Table of Contents

Class CacheStorageAdapter

Namespace
OpenQA.Selenium.DevTools.V147.CacheStorage
Assembly
Selenium.WebDriver.dll

Represents an adapter for the CacheStorage domain to simplify the command interface.

public class CacheStorageAdapter
Inheritance
CacheStorageAdapter
Inherited Members

Constructors

CacheStorageAdapter(IDevToolsSession)

Initializes a new instance of the CacheStorageAdapter class.

public CacheStorageAdapter(IDevToolsSession session)

Parameters

session IDevToolsSession

The IDevToolsSession to be used with this adapter.

Exceptions

ArgumentNullException

If session is null.

Properties

Session

Gets the DevToolsSession associated with the adapter.

public IDevToolsSession Session { get; }

Property Value

IDevToolsSession

Methods

DeleteCache(DeleteCacheCommandSettings, CancellationToken, int?, bool)

Deletes a cache.

public Task<DeleteCacheCommandResponse?> DeleteCache(DeleteCacheCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command DeleteCacheCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<DeleteCacheCommandResponse>

DeleteEntry(DeleteEntryCommandSettings, CancellationToken, int?, bool)

Deletes a cache entry.

public Task<DeleteEntryCommandResponse?> DeleteEntry(DeleteEntryCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command DeleteEntryCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<DeleteEntryCommandResponse>

RequestCacheNames(RequestCacheNamesCommandSettings, CancellationToken, int?, bool)

Requests cache names.

public Task<RequestCacheNamesCommandResponse> RequestCacheNames(RequestCacheNamesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RequestCacheNamesCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RequestCacheNamesCommandResponse>

RequestCachedResponse(RequestCachedResponseCommandSettings, CancellationToken, int?, bool)

Fetches cache entry.

public Task<RequestCachedResponseCommandResponse> RequestCachedResponse(RequestCachedResponseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RequestCachedResponseCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RequestCachedResponseCommandResponse>

RequestEntries(RequestEntriesCommandSettings, CancellationToken, int?, bool)

Requests data from cache.

public Task<RequestEntriesCommandResponse> RequestEntries(RequestEntriesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command RequestEntriesCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<RequestEntriesCommandResponse>