ICacheClient
Namespace: ASPSecurityKit
Assembly: ASPSecurityKit.dll
Summary
Provides an interface to perform simple caching operations.
Methods
Set<T>(key,value,expireAfter)
Summary
Sets the value in the cache storage for the specified key.
Parameters
Generic Types
Name |
Description |
T |
The type of the value. |
Get<T>(key)
Summary
Gets the value from the cache storage by the specified key.
Returns
The value from the cache storage by the specified key.
Parameters
Generic Types
Name |
Description |
T |
The type of the value. |
SetAsync<T>(key,value,expireAfter)
Summary
Sets the value in the cache storage for the specified key.
Parameters
Generic Types
Name |
Description |
T |
The type of the value. |
SetAsync<T>(key,value,cancellationToken,expireAfter)
Summary
Sets the value in the cache storage for the specified key.
Parameters
Generic Types
Name |
Description |
T |
The type of the value. |
GetAsync<T>(key)
Summary
Gets the value from the cache storage by the specified key.
Returns
The value from the cache storage by the specified key.
Parameters
Generic Types
Name |
Description |
T |
The type of the value. |
GetAsync<T>(key,cancellationToken)
Summary
Gets the value from the cache storage by the specified key.
Returns
The value from the cache storage by the specified key.
Parameters
Generic Types
Name |
Description |
T |
The type of the value. |