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; }