Method ClearAsync
ClearAsync(CancellationToken)
Clears all objects from the cache.
public Task ClearAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
Remarks
The clear operation should be used with care, as it can affect other clients and threads. Objects that are locked by other callers will be removed immediately. Expiration events for cleared objects will not be fired. Write-behind events to remove cleared objects will not be fired.