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