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

AsyncSerializingCacheProvider<TResult, TSerialized>

public class AsyncSerializingCacheProvider<TResult, TSerialized> : IAsyncCacheProvider<TResult>
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.
/* Error decompiling System.Threading.Tasks.Task Polly.Caching.AsyncSerializingCacheProvider`2::PutAsync(System.String,TResult,Polly.Caching.Ttl,System.Threading.CancellationToken,System.Boolean) */