← All recipes
Moderne licensed

Find IDistributedCache usage (HybridCache in .NET 9)

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindDistributedCacheArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds usages of IDistributedCache. In .NET 9, HybridCache is the recommended replacement with L1/L2 caching, stampede protection, and tag-based invalidation.

Single recipesearchdotnetcachingnet9Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindDistributedCache

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet