/// <summary> /// 获得实例 /// </summary> private static void GetInstance() { if (Enable && _instance == null) { lock (syncObj) { //string cacheKey = "vast"; //if (!string.IsNullOrEmpty(cacheKey)) //{ // _instance = CacheFactory.GetCacheService(CacheFactory.GetCacheServerProvider(cacheKey)); //} // 当前在的配置错误没有取到配置的缓存服务读取默认服务 if (_instance == null) { _instance = CacheFactory.GetDefaultService(); } } } }