コード例 #1
0
ファイル: MemoryCache.cs プロジェクト: Zongsoft/Framework
 public MemoryCache(string name)
 {
     this.Name  = name;
     _cache     = new ConcurrentDictionary <string, CacheEntry>(StringComparer.OrdinalIgnoreCase);
     _expirator = new Expirator(OnExpired, _cache);
 }
コード例 #2
0
ファイル: MemoryCache.cs プロジェクト: Zongsoft/Framework
 public MemoryCache()
 {
     this.Name  = typeof(MemoryCache).FullName + "#" + Environment.TickCount64.ToString("X");
     _cache     = new ConcurrentDictionary <string, CacheEntry>(StringComparer.OrdinalIgnoreCase);
     _expirator = new Expirator(OnExpired, _cache);
 }