Table of Contents

Class AsyncSerializingCacheProvider<TSerialized>

Namespace
Polly.Caching
Assembly
Polly.dll
public class AsyncSerializingCacheProvider<TSerialized> : IAsyncCacheProvider

Type Parameters

TSerialized
Inheritance
AsyncSerializingCacheProvider<TSerialized>
Implements
Inherited Members
Extension Methods

Constructors

AsyncSerializingCacheProvider(IAsyncCacheProvider<TSerialized>, ICacheItemSerializer<object, TSerialized>)

public AsyncSerializingCacheProvider(IAsyncCacheProvider<TSerialized> wrappedCacheProvider, ICacheItemSerializer<object, TSerialized> serializer)

Parameters

wrappedCacheProvider IAsyncCacheProvider<TSerialized>
serializer ICacheItemSerializer<object, TSerialized>

Methods

PutAsync(string, object, Ttl, CancellationToken, bool)

public 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)

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

Parameters

key string
cancellationToken CancellationToken
continueOnCapturedContext bool

Returns

Task<(bool, object)>