diff --git a/src/Libraries/Nop.Core/Caching/DistributedCacheManager.cs b/src/Libraries/Nop.Core/Caching/DistributedCacheManager.cs index b7e18737e23..1c88f573bbc 100644 --- a/src/Libraries/Nop.Core/Caching/DistributedCacheManager.cs +++ b/src/Libraries/Nop.Core/Caching/DistributedCacheManager.cs @@ -107,7 +107,7 @@ private DistributedCacheEntryOptions PrepareEntryOptions(CacheKey key) /// /// Key of cached item /// Value for caching - public void Set(CacheKey key, object data) + private void Set(CacheKey key, object data) { if ((key?.CacheTime ?? 0) <= 0 || data == null) return; diff --git a/src/Libraries/Nop.Core/Caching/MemoryCacheManager.cs b/src/Libraries/Nop.Core/Caching/MemoryCacheManager.cs index 6f4ffe7ecd7..401ecbb18b0 100644 --- a/src/Libraries/Nop.Core/Caching/MemoryCacheManager.cs +++ b/src/Libraries/Nop.Core/Caching/MemoryCacheManager.cs @@ -66,7 +66,7 @@ private MemoryCacheEntryOptions PrepareEntryOptions(CacheKey key) /// /// Cache key /// Parameters to create cache key - public void Remove(CacheKey cacheKey, params object[] cacheKeyParameters) + private void Remove(CacheKey cacheKey, params object[] cacheKeyParameters) { cacheKey = PrepareKey(cacheKey, cacheKeyParameters); _memoryCache.Remove(cacheKey.Key); @@ -77,7 +77,7 @@ public void Remove(CacheKey cacheKey, params object[] cacheKeyParameters) /// /// Key of cached item /// Value for caching - public void Set(CacheKey key, object data) + private void Set(CacheKey key, object data) { if ((key?.CacheTime ?? 0) <= 0 || data == null) return;