Table of Contents

Interface IAsyncCacheProvider

Namespace
Polly.Caching
Assembly
Polly.dll
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 string
value object
ttl Ttl
cancellationToken CancellationToken
continueOnCapturedContext bool

Returns

Task

TryGetAsync(string, CancellationToken, bool)

Task<(bool, object)> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)

Parameters

key string
cancellationToken CancellationToken
continueOnCapturedContext bool

Returns

Task<(bool, object)>