添加查询缓存
有一些效果,原来10分钟就会崩溃的,现在延长了一个小时,不过有的时候,还是会崩溃
This commit is contained in:
@@ -64,8 +64,8 @@ namespace Common
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Key = "HttpRequest_" + resp.code + "_" + resp.roomNumber;
|
||||
MemoryCacheHelper.Set(Key, 1, DateTimeOffset.Now.AddMinutes(10));
|
||||
//string Key = "HttpRequest_" + resp.code + "_" + resp.roomNumber;
|
||||
//MemoryCacheHelper.Set(Key, 1, DateTimeOffset.Now.AddMinutes(10));
|
||||
logger.Error(string.Format("酒店({0})客房({1})调用设备状态或异常推送接口({2})失败:{3},数据:{4}", resp.code, resp.roomNumber, url, ex.Message, param));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user