Interface ISupportInvalidation
Represents an ICache object with support for invalidation.
Namespace: IRM.Extensions.Caching
Assembly: IRM.Extensions.Caching.dll
Syntax
public interface ISupportInvalidation
Methods
InvalidateAsync(Nullable<DateTimeOffset>, CancellationToken)
Invalidates (clears) the ICache.
Declaration
Task InvalidateAsync(DateTimeOffset? absoluteExpiration = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
|
System.Nullable<System.DateTimeOffset>
absoluteExpiration
Optional, the System.DateTimeOffset used to decide which items should be removed. |
|
System.Threading.CancellationToken
cancellationToken
Optional, the System.Threading.CancellationToken used to propagate notifications that the operation should be canceled. |
Returns
|
System.Threading.Tasks.Task
The System.Threading.Tasks.Task that represents the asynchronous operation. |