This commit is contained in:
tanglong 2025-08-25 13:01:19 +08:00
parent d9b7a8dd64
commit ac7f9ec3c3
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ namespace YD_XinWei.Api.Services.Impl
Score = x.Score,
Rank = x.Rank
}).ToListAsync();
_caching.AddObject(sportsTestDataKey, sportsTestData, 3600);
_caching.AddObject(sportsTestDataKey, sportsTestData, 60);
}
var bestScoreData = sportsTestData

View File

@ -63,7 +63,7 @@ namespace YD_XinWei.Api
services.AddScoped<IXinWeiService, XinWeiService>();
services.AddScoped<ILargeScreenService, LargeScreenService>();
services.AddScoped<ICacheService, RedisCacheService>();
services.AddSingleton<ICacheService, RedisCacheService>();
services.AddSession();
services.AddMemoryCache();
services.AddHttpContextAccessor();