Implementation of Polly Caching Strategy that utilizes HybridCache. A result is provided from cache where available.
$ dotnet add package Axion.Extensions.Polly.Caching.HybridImplementation of Polly Caching Strategy that utilizes HybridCache.
A result is provided from cache where available.
services.AddHybrdCache();
services.AddResiliencePipeline<string, TYPE>(
"test-pipeline",
(pipeline, add) =>
pipeline.AddCaching(
new()
{
HybridCache = add.ServiceProvider.GetRequiredService<HybridCache>(),
}));