From 840dc0eaf5aa600f28abb6c96349896db87bf3a5 Mon Sep 17 00:00:00 2001 From: sanji Date: Tue, 9 Jan 2024 11:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E8=AE=A1?= =?UTF-8?q?=E6=95=B0=E5=99=A8=E5=BC=95=E8=B5=B7=E7=9A=841688sdk=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/PlatformSDK/PlatformSDKBusiness.cs | 1 + BBWY.Server.Business/PlatformSDK/_1688Business.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/BBWY.Server.Business/PlatformSDK/PlatformSDKBusiness.cs b/BBWY.Server.Business/PlatformSDK/PlatformSDKBusiness.cs index 9bf04a53..cfa8ac30 100644 --- a/BBWY.Server.Business/PlatformSDK/PlatformSDKBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/PlatformSDKBusiness.cs @@ -35,6 +35,7 @@ namespace BBWY.Server.Business public PlatformSDKBusiness(IMemoryCache memoryCache, NLogManager nLogManager) { + this.expirationTimeSpan = TimeSpan.FromMinutes(60); this.memoryCache = memoryCache; this.nLogManager = nLogManager; } diff --git a/BBWY.Server.Business/PlatformSDK/_1688Business.cs b/BBWY.Server.Business/PlatformSDK/_1688Business.cs index def4baea..806b8f32 100644 --- a/BBWY.Server.Business/PlatformSDK/_1688Business.cs +++ b/BBWY.Server.Business/PlatformSDK/_1688Business.cs @@ -35,6 +35,7 @@ namespace BBWY.Server.Business { syncAPIClient = new SyncAPIClient(appKey, appSecret, restApiService); memoryCache.Set(appKey, syncAPIClient, expirationTimeSpan); + //memoryCache.Set(appKey, syncAPIClient, TimeSpan.FromMinutes(60)); } return syncAPIClient; }