using System; using System.Collections.Concurrent; namespace IStation { /// /// /// internal sealed partial class SharedMemoryCache { /// /// 私有构造函数 /// private SharedMemoryCache() { this._memoryCache = new System.Runtime.Caching.MemoryCache(Guid.NewGuid().ToString()); this._cacheKeysBeingHandled = new ConcurrentDictionary(); } /// /// 获取缓存实例 /// public static SharedMemoryCache Instance => _lazy.Value; } }