Class AsyncSerializingCacheProvider<TSerialized>
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
stringvalue
objectttl
TtlcancellationToken
CancellationTokencontinueOnCapturedContext
bool
Returns
TryGetAsync(string, CancellationToken, bool)
public Task<(bool, object)> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)
Parameters
key
stringcancellationToken
CancellationTokencontinueOnCapturedContext
bool