public MemoryCache(string name) { this.Name = name; _cache = new ConcurrentDictionary <string, CacheEntry>(StringComparer.OrdinalIgnoreCase); _expirator = new Expirator(OnExpired, _cache); }
public MemoryCache() { this.Name = typeof(MemoryCache).FullName + "#" + Environment.TickCount64.ToString("X"); _cache = new ConcurrentDictionary <string, CacheEntry>(StringComparer.OrdinalIgnoreCase); _expirator = new Expirator(OnExpired, _cache); }