添加查询缓存
有一些效果,原来10分钟就会崩溃的,现在延长了一个小时,不过有的时候,还是会崩溃
This commit is contained in:
@@ -6,6 +6,30 @@ using System.Text;
|
||||
using System.Collections.Concurrent;
|
||||
namespace Common
|
||||
{
|
||||
public class WebAPI_TongJi
|
||||
{
|
||||
public static long GetRoomAirList = 0;
|
||||
public static long SetRCUAir = 0;
|
||||
public static long GetRoomSceneList = 0;
|
||||
public static long SetRCUScene = 0;
|
||||
public static long GetRoomLightList =0;
|
||||
public static long SetRCULight = 0;
|
||||
public static long GetRoomCurtainList = 0;
|
||||
public static long SetRCUCurtain = 0;
|
||||
public static long GetRoomServiceList = 0;
|
||||
public static long SetRCUService = 0;
|
||||
public static long GetOperationLog = 0;
|
||||
public static long GetRoomMusicList = 0;
|
||||
public static long SetRCUMusic = 0;
|
||||
public static long GetRCUStatus = 0;
|
||||
public static long GetAirDetectList = 0;
|
||||
public static long GetHostFaultList = 0;
|
||||
public static long GetRoomTypeAndModalsList = 0;
|
||||
public static long GetRCUInfoForPDU = 0;
|
||||
public static long GetSessionKey = 0;
|
||||
public static long GetPhoneNumber = 0;
|
||||
public static long GetHotelInfoForWX = 0;
|
||||
}
|
||||
public class YUANZI_TongJi
|
||||
{
|
||||
public static long TotalReceiveCount = 0;
|
||||
|
||||
@@ -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