diff --git a/src/Umbraco.Abstractions/Cache/AppCaches.cs b/src/Umbraco.Abstractions/Cache/AppCaches.cs
index 5e8c460ae4..8930320447 100644
--- a/src/Umbraco.Abstractions/Cache/AppCaches.cs
+++ b/src/Umbraco.Abstractions/Cache/AppCaches.cs
@@ -12,7 +12,7 @@ namespace Umbraco.Core.Cache
///
public AppCaches(
IAppPolicyCache runtimeCache,
- IAppCache requestCache,
+ IRequestCache requestCache,
IsolatedCaches isolatedCaches)
{
RuntimeCache = runtimeCache ?? throw new ArgumentNullException(nameof(runtimeCache));
@@ -45,7 +45,7 @@ namespace Umbraco.Core.Cache
/// The per-request caches works on top of the current HttpContext items.
/// Outside a web environment, the behavior of that cache is unspecified.
///
- public IAppCache RequestCache { get; }
+ public IRequestCache RequestCache { get; }
///
/// Gets the runtime cache.
diff --git a/src/Umbraco.Abstractions/Cache/DictionaryAppCache.cs b/src/Umbraco.Abstractions/Cache/DictionaryAppCache.cs
index 6e528165a0..fd360b303d 100644
--- a/src/Umbraco.Abstractions/Cache/DictionaryAppCache.cs
+++ b/src/Umbraco.Abstractions/Cache/DictionaryAppCache.cs
@@ -8,7 +8,7 @@ namespace Umbraco.Core.Cache
///
/// Implements on top of a concurrent dictionary.
///
- public class DictionaryAppCache : IAppCache
+ public class DictionaryAppCache : IRequestCache
{
///
/// Gets the internal items dictionary, for tests only!
@@ -17,6 +17,9 @@ namespace Umbraco.Core.Cache
public int Count => _items.Count;
+ ///
+ public bool IsAvailable => true;
+
///
public virtual object Get(string key)
{
@@ -29,6 +32,10 @@ namespace Umbraco.Core.Cache
return _items.GetOrAdd(key, _ => factory());
}
+ public bool Set(string key, object value) => _items.TryAdd(key, value);
+
+ public bool Remove(string key) => _items.TryRemove(key, out _);
+
///
public virtual IEnumerable