Closed shah-keyur closed 6 years ago
Hi MichaMo,
I feel like the method would be similar to below, correct me if I am wrong.
internal static void RegisterChild(this MemoryCache cache, object parentKey, object childKey) { if (cache.TryGetValue(parentKey, out var temp)) { var set = (HashSet
Ignore this I got it . its reference type so no need.
my bad !
Hi MichaMo,
I am trying to use the CacheManager.Microsoft.Extensions.Caching.Memory.
I found that the code for MemoryCacheExtensions.RegisterChild() is inappropriate or I could not understand.
internal static void RegisterChild(this MemoryCache cache, object parentKey, object childKey) { if (cache.TryGetValue(parentKey, out var temp)) { var set = (HashSet
Variable "set" is not used with "cache" seems RegisterChild() method will be just called but will not do anything.
Can you explain what it does and how it maintains the region in - memory?
Thanks, Keyur