Refactor System.Runtime.Caching to Microsoft.Extensions.Caching.Memory
This commit is contained in:
committed by
Bjarke Berg
parent
ace5c54da2
commit
05921ee6cc
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user