/// <summary> /// 注入数据缓存 /// </summary> public static void InjectionDataCache(bool isreset = false) { //注入数据缓存组件 DataCacheExtensions.UseDataCache(new DataCacheServerOptions { CacheItems = null, InitIfNull = true, RedisConnectionString = DataCacheRedisConnectionString, SqlConnection = KylinDBConnectionString, SqlType = SqlType, KeepAlive = true }); if (isreset) { CacheCollection.Reset(); } }