chore(deps): update dependency efcoresecondlevelcacheinterceptor to v4.4.1 (#11306)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
renovate[bot]
2024-04-14 08:18:09 -06:00
committed by GitHub
parent 453a5bdcf3
commit 9a4db80085
2 changed files with 2 additions and 4 deletions

View File

@@ -22,11 +22,9 @@ public static class ServiceCollectionExtensions
serviceCollection.AddEFSecondLevelCache(options =>
options.UseMemoryCacheProvider()
.CacheAllQueries(CacheExpirationMode.Sliding, TimeSpan.FromMinutes(10))
.DisableLogging(true)
.UseCacheKeyPrefix("EF_")
// Don't cache null values. Remove this optional setting if it's not necessary.
.SkipCachingResults(result =>
result.Value is null || (result.Value is EFTableRows rows && rows.RowsCount == 0)));
.SkipCachingResults(result => result.Value is null or EFTableRows { RowsCount: 0 }));
serviceCollection.AddPooledDbContextFactory<JellyfinDbContext>((serviceProvider, opt) =>
{