File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Or if you were using the `CacheManager.Core provider`, install the new
4646dotnet add package EFCoreSecondLevelCacheInterceptor.CacheManager.Core
4747```
4848
49- Also there are two new caching providers available in V5:
49+ Also there are 3 new caching providers available in V5:
5050
5151### 1- EFCoreSecondLevelCacheInterceptor.StackExchange.Redis
5252
@@ -133,6 +133,24 @@ services.AddFusionCache()
133133services .AddEFSecondLevelCache (options => options .UseFusionCacheProvider ());
134134```
135135
136+ ### 3- EFCoreSecondLevelCacheInterceptor.HybridCache
137+
138+ This provider uses the [ HybridCache] ( https://learn.microsoft.com/en-us/aspnet/core/performance/caching/hybrid?view=aspnetcore-9.0 ) as a cache provider. To use it,
139+ first you should install its new NuGet package:
140+
141+ [ ![ Nuget] ( https://img.shields.io/nuget/v/EFCoreSecondLevelCacheInterceptor.HybridCache )] ( http://www.nuget.org/packages/EFCoreSecondLevelCacheInterceptor.HybridCache/ )
142+
143+ ``` powershell
144+ dotnet add package EFCoreSecondLevelCacheInterceptor.HybridCache
145+ ```
146+
147+ And then this is how you can register its required services:
148+
149+ ``` csharp
150+ services .AddEFSecondLevelCache (options => options .UseHybridCacheProvider ());
151+ ```
152+
153+
136154## Usage ([ 1] ( #1--register-a-preferred-cache-provider ) & [ 2] ( #2--add-secondlevelcacheinterceptor-to-your-dbcontextoptionsbuilder-pipeline ) are mandatory)
137155
138156### 1- [ Register a preferred cache provider] ( https://github.com/VahidN/EFCoreSecondLevelCacheInterceptor/tree/master/src/Tests/EFCoreSecondLevelCacheInterceptor.AspNetCoreSample/Startup.cs ) :
You can’t perform that action at this time.
0 commit comments