diff --git a/Source/Cogworks.Essentials/Services/Interfaces/ICacheService.cs b/Source/Cogworks.Essentials/Services/Interfaces/ICacheService.cs index 5284419..b1e30e1 100644 --- a/Source/Cogworks.Essentials/Services/Interfaces/ICacheService.cs +++ b/Source/Cogworks.Essentials/Services/Interfaces/ICacheService.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Threading.Tasks; namespace Cogworks.Essentials.Services.Interfaces @@ -17,5 +17,7 @@ Task GetOrAddCacheItemAsync(string cacheKey, Func> getValueFunctio void RemoveCacheItem(string cacheKey); bool Contains(string cacheKey); + + void ClearAll(); } } \ No newline at end of file diff --git a/Source/Cogworks.Essentials/Services/MemoryCacheService.cs b/Source/Cogworks.Essentials/Services/MemoryCacheService.cs index f776fa6..b51ec9f 100644 --- a/Source/Cogworks.Essentials/Services/MemoryCacheService.cs +++ b/Source/Cogworks.Essentials/Services/MemoryCacheService.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; @@ -123,7 +123,7 @@ public void DeleteAllStartingWith(string cacheKey) RemoveCacheKeyList(cacheKeysToRemove); } - public void DeleteAll() + public void ClearAll() { var cacheKeys = GetOrAddCacheKeyList();