diff --git a/src/Umbraco.Core/Cache/AppCaches.cs b/src/Umbraco.Core/Cache/AppCaches.cs
index 6372bccbab..7e5fa43682 100644
--- a/src/Umbraco.Core/Cache/AppCaches.cs
+++ b/src/Umbraco.Core/Cache/AppCaches.cs
@@ -30,7 +30,7 @@ namespace Umbraco.Core.Cache
/// Initializes a new instance of the with cache providers.
///
public AppCaches(
- IAppPolicedCache runtimeCache,
+ IAppPolicyCache runtimeCache,
IAppCache staticCacheProvider,
IAppCache requestCache,
IsolatedCaches isolatedCaches)
@@ -82,7 +82,7 @@ namespace Umbraco.Core.Cache
///
/// The runtime cache is the main application cache.
///
- public IAppPolicedCache RuntimeCache { get; }
+ public IAppPolicyCache RuntimeCache { get; }
///
/// Gets the isolated caches.
diff --git a/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs b/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs
index 51cc3c4c53..5c60dededa 100644
--- a/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs
+++ b/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs
@@ -4,18 +4,18 @@ using System.Collections.Concurrent;
namespace Umbraco.Core.Cache
{
///
- /// Provides a base class for implementing a dictionary of .
+ /// Provides a base class for implementing a dictionary of .
///
/// The type of the dictionary key.
public abstract class AppPolicedCacheDictionary
{
- private readonly ConcurrentDictionary _caches = new ConcurrentDictionary();
+ private readonly ConcurrentDictionary _caches = new ConcurrentDictionary();
///
/// Initializes a new instance of the class.
///
///
- protected AppPolicedCacheDictionary(Func cacheFactory)
+ protected AppPolicedCacheDictionary(Func cacheFactory)
{
CacheFactory = cacheFactory;
}
@@ -23,19 +23,19 @@ namespace Umbraco.Core.Cache
///
/// Gets the internal cache factory, for tests only!
///
- internal readonly Func CacheFactory;
+ internal readonly Func CacheFactory;
///
/// Gets or creates a cache.
///
- public IAppPolicedCache GetOrCreate(TKey key)
+ public IAppPolicyCache GetOrCreate(TKey key)
=> _caches.GetOrAdd(key, k => CacheFactory(k));
///
/// Tries to get a cache.
///
- public Attempt Get(TKey key)
- => _caches.TryGetValue(key, out var cache) ? Attempt.Succeed(cache) : Attempt.Fail();
+ public Attempt Get(TKey key)
+ => _caches.TryGetValue(key, out var cache) ? Attempt.Succeed(cache) : Attempt.Fail();
///
/// Removes a cache.
diff --git a/src/Umbraco.Core/Cache/CacheProviderExtensions.cs b/src/Umbraco.Core/Cache/CacheProviderExtensions.cs
index 0e41b981fb..d943d19edb 100644
--- a/src/Umbraco.Core/Cache/CacheProviderExtensions.cs
+++ b/src/Umbraco.Core/Cache/CacheProviderExtensions.cs
@@ -10,7 +10,7 @@ namespace Umbraco.Core.Cache
///
public static class CacheProviderExtensions
{
- public static T GetCacheItem(this IAppPolicedCache provider,
+ public static T GetCacheItem(this IAppPolicyCache provider,
string cacheKey,
Func getCacheItem,
TimeSpan? timeout,
@@ -23,7 +23,7 @@ namespace Umbraco.Core.Cache
return result == null ? default(T) : result.TryConvertTo().Result;
}
- public static void InsertCacheItem(this IAppPolicedCache provider,
+ public static void InsertCacheItem(this IAppPolicyCache provider,
string cacheKey,
Func getCacheItem,
TimeSpan? timeout = null,
diff --git a/src/Umbraco.Core/Cache/DeepCloneAppCache.cs b/src/Umbraco.Core/Cache/DeepCloneAppCache.cs
index cdc66f1db7..eff06e2aad 100644
--- a/src/Umbraco.Core/Cache/DeepCloneAppCache.cs
+++ b/src/Umbraco.Core/Cache/DeepCloneAppCache.cs
@@ -8,16 +8,16 @@ using Umbraco.Core.Models.Entities;
namespace Umbraco.Core.Cache
{
///
- /// Implements by wrapping an inner other
+ /// Implements by wrapping an inner other
/// instance, and ensuring that all inserts and returns are deep cloned copies of the cache item,
/// when the item is deep-cloneable.
///
- internal class DeepCloneAppCache : IAppPolicedCache
+ internal class DeepCloneAppCache : IAppPolicyCache
{
///
/// Initializes a new instance of the class.
///
- public DeepCloneAppCache(IAppPolicedCache innerCache)
+ public DeepCloneAppCache(IAppPolicyCache innerCache)
{
var type = typeof (DeepCloneAppCache);
@@ -30,7 +30,7 @@ namespace Umbraco.Core.Cache
///
/// Gets the inner cache.
///
- public IAppPolicedCache InnerCache { get; }
+ public IAppPolicyCache InnerCache { get; }
///
public object Get(string key)
diff --git a/src/Umbraco.Core/Cache/DefaultRepositoryCachePolicy.cs b/src/Umbraco.Core/Cache/DefaultRepositoryCachePolicy.cs
index 6f160cd552..c11309c827 100644
--- a/src/Umbraco.Core/Cache/DefaultRepositoryCachePolicy.cs
+++ b/src/Umbraco.Core/Cache/DefaultRepositoryCachePolicy.cs
@@ -23,7 +23,7 @@ namespace Umbraco.Core.Cache
private static readonly TEntity[] EmptyEntities = new TEntity[0]; // const
private readonly RepositoryCachePolicyOptions _options;
- public DefaultRepositoryCachePolicy(IAppPolicedCache cache, IScopeAccessor scopeAccessor, RepositoryCachePolicyOptions options)
+ public DefaultRepositoryCachePolicy(IAppPolicyCache cache, IScopeAccessor scopeAccessor, RepositoryCachePolicyOptions options)
: base(cache, scopeAccessor)
{
_options = options ?? throw new ArgumentNullException(nameof(options));
diff --git a/src/Umbraco.Core/Cache/FullDataSetRepositoryCachePolicy.cs b/src/Umbraco.Core/Cache/FullDataSetRepositoryCachePolicy.cs
index 3bc4c9d059..c3b69d9a6d 100644
--- a/src/Umbraco.Core/Cache/FullDataSetRepositoryCachePolicy.cs
+++ b/src/Umbraco.Core/Cache/FullDataSetRepositoryCachePolicy.cs
@@ -24,7 +24,7 @@ namespace Umbraco.Core.Cache
private readonly Func _entityGetId;
private readonly bool _expires;
- public FullDataSetRepositoryCachePolicy(IAppPolicedCache cache, IScopeAccessor scopeAccessor, Func entityGetId, bool expires)
+ public FullDataSetRepositoryCachePolicy(IAppPolicyCache cache, IScopeAccessor scopeAccessor, Func entityGetId, bool expires)
: base(cache, scopeAccessor)
{
_entityGetId = entityGetId;
diff --git a/src/Umbraco.Core/Cache/IAppPolicedCache.cs b/src/Umbraco.Core/Cache/IAppPolicyCache.cs
similarity index 97%
rename from src/Umbraco.Core/Cache/IAppPolicedCache.cs
rename to src/Umbraco.Core/Cache/IAppPolicyCache.cs
index 0aee7584df..90b0ccb9fd 100644
--- a/src/Umbraco.Core/Cache/IAppPolicedCache.cs
+++ b/src/Umbraco.Core/Cache/IAppPolicyCache.cs
@@ -10,7 +10,7 @@ namespace Umbraco.Core.Cache
///
/// A cache policy can be used to cache with timeouts,
/// or depending on files, and with a remove callback, etc.
- public interface IAppPolicedCache : IAppCache
+ public interface IAppPolicyCache : IAppCache
{
///
/// Gets an item identified by its key.
diff --git a/src/Umbraco.Core/Cache/IsolatedCaches.cs b/src/Umbraco.Core/Cache/IsolatedCaches.cs
index bc624be20d..f070fe8b55 100644
--- a/src/Umbraco.Core/Cache/IsolatedCaches.cs
+++ b/src/Umbraco.Core/Cache/IsolatedCaches.cs
@@ -3,7 +3,7 @@
namespace Umbraco.Core.Cache
{
///
- /// Represents a dictionary of for types.
+ /// Represents a dictionary of for types.
///
///
/// Isolated caches are used by e.g. repositories, to ensure that each cached entity
@@ -16,20 +16,20 @@ namespace Umbraco.Core.Cache
/// Initializes a new instance of the class.
///
///
- public IsolatedCaches(Func cacheFactory)
+ public IsolatedCaches(Func cacheFactory)
: base(cacheFactory)
{ }
///
/// Gets a cache.
///
- public IAppPolicedCache GetOrCreate()
+ public IAppPolicyCache GetOrCreate()
=> GetOrCreate(typeof(T));
///
/// Tries to get a cache.
///
- public Attempt Get()
+ public Attempt Get()
=> Get(typeof(T));
///
diff --git a/src/Umbraco.Core/Cache/NoAppCache.cs b/src/Umbraco.Core/Cache/NoAppCache.cs
index 8a7e15cb29..d3359a30ba 100644
--- a/src/Umbraco.Core/Cache/NoAppCache.cs
+++ b/src/Umbraco.Core/Cache/NoAppCache.cs
@@ -6,9 +6,9 @@ using System.Web.Caching;
namespace Umbraco.Core.Cache
{
///
- /// Implements and do not cache.
+ /// Implements and do not cache.
///
- public class NoAppCache : IAppPolicedCache
+ public class NoAppCache : IAppPolicyCache
{
private NoAppCache() { }
diff --git a/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs b/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs
index acc67be679..b1a12ec411 100644
--- a/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs
+++ b/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs
@@ -13,7 +13,7 @@ namespace Umbraco.Core.Cache
public static NoCacheRepositoryCachePolicy Instance { get; } = new NoCacheRepositoryCachePolicy();
- public IRepositoryCachePolicy Scoped(IAppPolicedCache runtimeCache, IScope scope)
+ public IRepositoryCachePolicy Scoped(IAppPolicyCache runtimeCache, IScope scope)
{
throw new NotImplementedException();
}
diff --git a/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs b/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs
index 954622fc4b..449eb5d643 100644
--- a/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs
+++ b/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs
@@ -11,9 +11,9 @@ using CacheItemPriority = System.Web.Caching.CacheItemPriority;
namespace Umbraco.Core.Cache
{
///
- /// Implements on top of a .
+ /// Implements on top of a .
///
- public class ObjectCacheAppCache : IAppPolicedCache
+ public class ObjectCacheAppCache : IAppPolicyCache
{
private readonly ReaderWriterLockSlim _locker = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);
diff --git a/src/Umbraco.Core/Cache/RepositoryCachePolicyBase.cs b/src/Umbraco.Core/Cache/RepositoryCachePolicyBase.cs
index f8bba4b033..27fe4e3035 100644
--- a/src/Umbraco.Core/Cache/RepositoryCachePolicyBase.cs
+++ b/src/Umbraco.Core/Cache/RepositoryCachePolicyBase.cs
@@ -13,16 +13,16 @@ namespace Umbraco.Core.Cache
internal abstract class RepositoryCachePolicyBase : IRepositoryCachePolicy
where TEntity : class, IEntity
{
- private readonly IAppPolicedCache _globalCache;
+ private readonly IAppPolicyCache _globalCache;
private readonly IScopeAccessor _scopeAccessor;
- protected RepositoryCachePolicyBase(IAppPolicedCache globalCache, IScopeAccessor scopeAccessor)
+ protected RepositoryCachePolicyBase(IAppPolicyCache globalCache, IScopeAccessor scopeAccessor)
{
_globalCache = globalCache ?? throw new ArgumentNullException(nameof(globalCache));
_scopeAccessor = scopeAccessor ?? throw new ArgumentNullException(nameof(scopeAccessor));
}
- protected IAppPolicedCache Cache
+ protected IAppPolicyCache Cache
{
get
{
diff --git a/src/Umbraco.Core/Cache/SingleItemsOnlyRepositoryCachePolicy.cs b/src/Umbraco.Core/Cache/SingleItemsOnlyRepositoryCachePolicy.cs
index 714798a47c..9de7519edb 100644
--- a/src/Umbraco.Core/Cache/SingleItemsOnlyRepositoryCachePolicy.cs
+++ b/src/Umbraco.Core/Cache/SingleItemsOnlyRepositoryCachePolicy.cs
@@ -16,7 +16,7 @@ namespace Umbraco.Core.Cache
internal class SingleItemsOnlyRepositoryCachePolicy : DefaultRepositoryCachePolicy
where TEntity : class, IEntity
{
- public SingleItemsOnlyRepositoryCachePolicy(IAppPolicedCache cache, IScopeAccessor scopeAccessor, RepositoryCachePolicyOptions options)
+ public SingleItemsOnlyRepositoryCachePolicy(IAppPolicyCache cache, IScopeAccessor scopeAccessor, RepositoryCachePolicyOptions options)
: base(cache, scopeAccessor, options)
{ }
diff --git a/src/Umbraco.Core/Cache/WebCachingAppCache.cs b/src/Umbraco.Core/Cache/WebCachingAppCache.cs
index b762fcda07..7fbdebf9ab 100644
--- a/src/Umbraco.Core/Cache/WebCachingAppCache.cs
+++ b/src/Umbraco.Core/Cache/WebCachingAppCache.cs
@@ -8,11 +8,11 @@ using System.Web.Caching;
namespace Umbraco.Core.Cache
{
///
- /// Implements on top of a .
+ /// Implements on top of a .
/// A CacheProvider that wraps the logic of the HttpRuntime.Cache
///
/// The underlying cache is expected to be HttpRuntime.Cache.
- internal class WebCachingAppCache : FastDictionaryAppCacheBase, IAppPolicedCache
+ internal class WebCachingAppCache : FastDictionaryAppCacheBase, IAppPolicyCache
{
// locker object that supports upgradeable read locking
// does not need to support recursion if we implement the cache correctly and ensure
diff --git a/src/Umbraco.Core/Composing/TypeLoader.cs b/src/Umbraco.Core/Composing/TypeLoader.cs
index fe277676d7..3950cf86e9 100644
--- a/src/Umbraco.Core/Composing/TypeLoader.cs
+++ b/src/Umbraco.Core/Composing/TypeLoader.cs
@@ -29,7 +29,7 @@ namespace Umbraco.Core.Composing
{
private const string CacheKey = "umbraco-types.list";
- private readonly IAppPolicedCache _runtimeCache;
+ private readonly IAppPolicyCache _runtimeCache;
private readonly IProfilingLogger _logger;
private readonly Dictionary _types = new Dictionary();
@@ -51,7 +51,7 @@ namespace Umbraco.Core.Composing
/// The application runtime cache.
/// Files storage mode.
/// A profiling logger.
- public TypeLoader(IAppPolicedCache runtimeCache, LocalTempStorage localTempStorage, IProfilingLogger logger)
+ public TypeLoader(IAppPolicyCache runtimeCache, LocalTempStorage localTempStorage, IProfilingLogger logger)
: this(runtimeCache, localTempStorage, logger, true)
{ }
@@ -62,7 +62,7 @@ namespace Umbraco.Core.Composing
/// Files storage mode.
/// A profiling logger.
/// Whether to detect changes using hashes.
- internal TypeLoader(IAppPolicedCache runtimeCache, LocalTempStorage localTempStorage, IProfilingLogger logger, bool detectChanges)
+ internal TypeLoader(IAppPolicyCache runtimeCache, LocalTempStorage localTempStorage, IProfilingLogger logger, bool detectChanges)
{
_runtimeCache = runtimeCache ?? throw new ArgumentNullException(nameof(runtimeCache));
_localTempStorage = localTempStorage == LocalTempStorage.Unknown ? LocalTempStorage.Default : localTempStorage;
diff --git a/src/Umbraco.Core/Manifest/ManifestParser.cs b/src/Umbraco.Core/Manifest/ManifestParser.cs
index 40e99bb079..a80cd98466 100644
--- a/src/Umbraco.Core/Manifest/ManifestParser.cs
+++ b/src/Umbraco.Core/Manifest/ManifestParser.cs
@@ -20,7 +20,7 @@ namespace Umbraco.Core.Manifest
{
private static readonly string Utf8Preamble = Encoding.UTF8.GetString(Encoding.UTF8.GetPreamble());
- private readonly IAppPolicedCache _cache;
+ private readonly IAppPolicyCache _cache;
private readonly ILogger _logger;
private readonly ManifestValueValidatorCollection _validators;
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
index 6862173786..c8329d1f32 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
@@ -30,7 +30,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
protected AppCaches AppCaches { get; }
- protected IAppPolicedCache GlobalIsolatedCache => AppCaches.IsolatedCaches.GetOrCreate();
+ protected IAppPolicyCache GlobalIsolatedCache => AppCaches.IsolatedCaches.GetOrCreate();
protected IScopeAccessor ScopeAccessor { get; }
@@ -60,7 +60,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
/// Gets the isolated cache.
///
/// Depends on the ambient scope cache mode.
- protected IAppPolicedCache IsolatedCache
+ protected IAppPolicyCache IsolatedCache
{
get
{
@@ -157,7 +157,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Adds or Updates an entity of type TEntity
///
- /// This method is backed by an cache
+ /// This method is backed by an cache
///
public void Save(TEntity entity)
{
diff --git a/src/Umbraco.Core/Services/Implement/LocalizedTextServiceFileSources.cs b/src/Umbraco.Core/Services/Implement/LocalizedTextServiceFileSources.cs
index 8c2d277348..430c2b3d3c 100644
--- a/src/Umbraco.Core/Services/Implement/LocalizedTextServiceFileSources.cs
+++ b/src/Umbraco.Core/Services/Implement/LocalizedTextServiceFileSources.cs
@@ -17,7 +17,7 @@ namespace Umbraco.Core.Services.Implement
public class LocalizedTextServiceFileSources
{
private readonly ILogger _logger;
- private readonly IAppPolicedCache _cache;
+ private readonly IAppPolicyCache _cache;
private readonly IEnumerable _supplementFileSources;
private readonly DirectoryInfo _fileSourceFolder;
diff --git a/src/Umbraco.Core/Umbraco.Core.csproj b/src/Umbraco.Core/Umbraco.Core.csproj
index d72c0e5014..b94c718242 100755
--- a/src/Umbraco.Core/Umbraco.Core.csproj
+++ b/src/Umbraco.Core/Umbraco.Core.csproj
@@ -131,7 +131,7 @@
-
+
diff --git a/src/Umbraco.Tests/Cache/DeepCloneRuntimeCacheProviderTests.cs b/src/Umbraco.Tests/Cache/DeepCloneRuntimeCacheProviderTests.cs
index 5158989a8b..7483df1c44 100644
--- a/src/Umbraco.Tests/Cache/DeepCloneRuntimeCacheProviderTests.cs
+++ b/src/Umbraco.Tests/Cache/DeepCloneRuntimeCacheProviderTests.cs
@@ -34,7 +34,7 @@ namespace Umbraco.Tests.Cache
get { return _provider; }
}
- internal override IAppPolicedCache RuntimeProvider
+ internal override IAppPolicyCache RuntimeProvider
{
get { return _provider; }
}
diff --git a/src/Umbraco.Tests/Cache/DefaultCachePolicyTests.cs b/src/Umbraco.Tests/Cache/DefaultCachePolicyTests.cs
index 0f649328fe..4161f576c9 100644
--- a/src/Umbraco.Tests/Cache/DefaultCachePolicyTests.cs
+++ b/src/Umbraco.Tests/Cache/DefaultCachePolicyTests.cs
@@ -28,7 +28,7 @@ namespace Umbraco.Tests.Cache
public void Caches_Single()
{
var isCached = false;
- var cache = new Mock();
+ var cache = new Mock();
cache.Setup(x => x.Insert(It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny(),
It.IsAny(), It.IsAny(), It.IsAny()))
.Callback(() =>
@@ -45,7 +45,7 @@ namespace Umbraco.Tests.Cache
[Test]
public void Get_Single_From_Cache()
{
- var cache = new Mock();
+ var cache = new Mock();
cache.Setup(x => x.Get(It.IsAny())).Returns(new AuditItem(1, AuditType.Copy, 123, "test", "blah"));
var defaultPolicy = new DefaultRepositoryCachePolicy(cache.Object, DefaultAccessor, new RepositoryCachePolicyOptions());
@@ -58,7 +58,7 @@ namespace Umbraco.Tests.Cache
public void Caches_Per_Id_For_Get_All()
{
var cached = new List();
- var cache = new Mock();
+ var cache = new Mock();
cache.Setup(x => x.Insert(It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny(),
It.IsAny(), It.IsAny(), It.IsAny()))
.Callback((string cacheKey, Func