Skip to content

Commit

Permalink
Changed accessibility of Set methods
Browse files Browse the repository at this point in the history
  • Loading branch information
skoshelev committed Mar 16, 2021
1 parent 5322dfa commit 2086281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Libraries/Nop.Core/Caching/DistributedCacheManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private DistributedCacheEntryOptions PrepareEntryOptions(CacheKey key)
/// </summary>
/// <param name="key">Key of cached item</param>
/// <param name="data">Value for caching</param>
public void Set(CacheKey key, object data)
private void Set(CacheKey key, object data)
{
if ((key?.CacheTime ?? 0) <= 0 || data == null)
return;
Expand Down
4 changes: 2 additions & 2 deletions src/Libraries/Nop.Core/Caching/MemoryCacheManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private MemoryCacheEntryOptions PrepareEntryOptions(CacheKey key)
/// </summary>
/// <param name="cacheKey">Cache key</param>
/// <param name="cacheKeyParameters">Parameters to create cache key</param>
public void Remove(CacheKey cacheKey, params object[] cacheKeyParameters)
private void Remove(CacheKey cacheKey, params object[] cacheKeyParameters)
{
cacheKey = PrepareKey(cacheKey, cacheKeyParameters);
_memoryCache.Remove(cacheKey.Key);
Expand All @@ -77,7 +77,7 @@ public void Remove(CacheKey cacheKey, params object[] cacheKeyParameters)
/// </summary>
/// <param name="key">Key of cached item</param>
/// <param name="data">Value for caching</param>
public void Set(CacheKey key, object data)
private void Set(CacheKey key, object data)
{
if ((key?.CacheTime ?? 0) <= 0 || data == null)
return;
Expand Down

0 comments on commit 2086281

Please sign in to comment.