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