Show / Hide Table of Contents

Interface ICacheAdapter

Namespace: AzureFromTheTrenches.Commanding.Cache
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
Name Description
T
| 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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX