AsyncSerializingCacheProvider<TSerialized>
Defines an IAsyncCacheProvider which serializes objects of any type in and out of an underlying cache which caches as type TSerialized. For use with asynchronous CachePolicy.
public AsyncSerializingCacheProvider(IAsyncCacheProvider<TSerialized> wrappedCacheProvider, ICacheItemSerializer<object, TSerialized> serializer)
Initializes a new instance of the AsyncSerializingCacheProvider<T, U> class.
public Task PutAsync(string key, object value, Ttl ttl, CancellationToken cancellationToken, bool continueOnCapturedContext)
Puts the specified value in the cache asynchronously.
public Task<ValueTuple<bool, object>> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)
Gets a value from the cache asynchronously.