Interface IAsyncCacheProvider
public interface IAsyncCacheProvider
- Extension Methods
Methods
PutAsync(string, object, Ttl, CancellationToken, bool)
Task PutAsync(string key, object value, Ttl ttl, CancellationToken cancellationToken, bool continueOnCapturedContext)
Parameters
key
stringvalue
objectttl
TtlcancellationToken
CancellationTokencontinueOnCapturedContext
bool
Returns
TryGetAsync(string, CancellationToken, bool)
Task<(bool, object)> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)
Parameters
key
stringcancellationToken
CancellationTokencontinueOnCapturedContext
bool