Interface ICacheAdapter
Assembly: AzureFromTheTrenches.Commanding.Cache.dll
Syntax
public interface ICacheAdapter
Methods
|
Improve this Doc
View Source
Get<T>(String)
Declaration
Task<T> Get<T>(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<T> |
|
Type Parameters
|
Improve this Doc
View Source
Set(String, Object, DateTime)
Declaration
Task Set(string key, object value, DateTime expiresAt)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| System.Object |
value |
|
| System.DateTime |
expiresAt |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Set(String, Object, TimeSpan)
Declaration
Task Set(string key, object value, TimeSpan lifeTime)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| System.Object |
value |
|
| System.TimeSpan |
lifeTime |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|