我正在使用ironyx/dache
分布式缓存。
我创建了一个单例对象CacheClient
并在当前项目中使用它。
internal class CacheClientSingleton
{
private static CacheClient _instance;
public static CacheClient GetInstance
{
get { return _instance ?? (_instance = new CacheClient()); }
}
private CacheClientSingleton() { }
}
使用 dache 的 CacheClient 或 ... 可以吗?