<PackageReference Include="Polly" Version="8.1.0" />

AsyncSerializingCacheProvider<TSerialized>

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

public Task PutAsync(string key, object value, Ttl ttl, CancellationToken cancellationToken, bool continueOnCapturedContext)

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