Refactor System.Runtime.Caching to Microsoft.Extensions.Caching.Memory

This commit is contained in:
Ronald Barendse
2023-11-08 23:39:22 +01:00
committed by Bjarke Berg
parent ace5c54da2
commit 05921ee6cc
5 changed files with 42 additions and 16 deletions

View File

@@ -2,7 +2,6 @@
// See LICENSE for more details.
using System.Diagnostics;
using System.Linq;
using NUnit.Framework;
using Umbraco.Cms.Core.Cache;
using Umbraco.Cms.Core.Collections;
@@ -27,7 +26,7 @@ public class DeepCloneAppCacheTests : RuntimeAppCacheTests
private DeepCloneAppCache _provider;
private ObjectCacheAppCache _memberCache;
protected override int GetTotalItemCount => _memberCache.MemoryCache.Count();
protected override int GetTotalItemCount => _memberCache.MemoryCache.Count;
internal override IAppCache AppCache => _provider;

View File

@@ -1,7 +1,6 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
using System.Linq;
using NUnit.Framework;
using Umbraco.Cms.Core.Cache;
@@ -18,7 +17,7 @@ public class ObjectAppCacheTests : RuntimeAppCacheTests
private ObjectCacheAppCache _provider;
protected override int GetTotalItemCount => _provider.MemoryCache.Count();
protected override int GetTotalItemCount => _provider.MemoryCache.Count;
internal override IAppCache AppCache => _provider;