改动量太大,暂停
string key = $"template-{ownerId}-{sysId}-{appPath}-{confPath}-{resField}";
var task = _icache.GetJsonAsync<IConfigurationRoot>("bizc_excel", key);
IConfigurationRoot iconf = null;
if (task != null)
{
iconf = task.Result;
}
if (iconf != null && iconf.GetChildren().Count() > 0)
{
return iconf;
}
#endregion 缓存处理
_icache.SetJsonAsync<IConfigurationRoot>("bizc_excel", key, iconf, DateTimeUtil.NowTimeSpan(0));
var task = _dataMapperCache.GetJsonAsync<SqlConfig>("bizc_sqlconfig_pro", pfCacheKey);
SqlConfig sqlconfigV = null;
if (task != null)
{
sqlconfigV = task.Result;
}
if (sqlconfigV != null)
{
return sqlconfigV;
}
_dataMapperCache.SetJsonAsync("bizc_sqlconfig_pro", pfCacheKey, sqlConfigCur, DateTimeUtil.NowTimeSpan(0));
文档更新时间: 2022-04-06 06:21 作者:admin