ソースを参照

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>
renovate[bot] 1 年間 前
コミット
9a4db80085

+ 1 - 1
Directory.Packages.props

@@ -16,7 +16,7 @@
     <PackageVersion Include="Diacritics" Version="3.3.27" />
     <PackageVersion Include="Diacritics" Version="3.3.27" />
     <PackageVersion Include="DiscUtils.Udf" Version="0.16.13" />
     <PackageVersion Include="DiscUtils.Udf" Version="0.16.13" />
     <PackageVersion Include="DotNet.Glob" Version="3.1.3" />
     <PackageVersion Include="DotNet.Glob" Version="3.1.3" />
-    <PackageVersion Include="EFCoreSecondLevelCacheInterceptor" Version="4.3.1" />
+    <PackageVersion Include="EFCoreSecondLevelCacheInterceptor" Version="4.4.1" />
     <PackageVersion Include="FsCheck.Xunit" Version="2.16.6" />
     <PackageVersion Include="FsCheck.Xunit" Version="2.16.6" />
     <PackageVersion Include="HarfBuzzSharp.NativeAssets.Linux" Version="7.3.0.2" />
     <PackageVersion Include="HarfBuzzSharp.NativeAssets.Linux" Version="7.3.0.2" />
     <PackageVersion Include="ICU4N.Transliterator" Version="60.1.0-alpha.356" />
     <PackageVersion Include="ICU4N.Transliterator" Version="60.1.0-alpha.356" />

+ 1 - 3
Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs

@@ -22,11 +22,9 @@ public static class ServiceCollectionExtensions
         serviceCollection.AddEFSecondLevelCache(options =>
         serviceCollection.AddEFSecondLevelCache(options =>
             options.UseMemoryCacheProvider()
             options.UseMemoryCacheProvider()
                 .CacheAllQueries(CacheExpirationMode.Sliding, TimeSpan.FromMinutes(10))
                 .CacheAllQueries(CacheExpirationMode.Sliding, TimeSpan.FromMinutes(10))
-                .DisableLogging(true)
                 .UseCacheKeyPrefix("EF_")
                 .UseCacheKeyPrefix("EF_")
                 // Don't cache null values. Remove this optional setting if it's not necessary.
                 // 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) =>
         serviceCollection.AddPooledDbContextFactory<JellyfinDbContext>((serviceProvider, opt) =>
         {
         {