This commit is contained in:
qianjiawei
2024-03-08 17:54:08 +08:00
parent a5c60fb131
commit f37ad2bfa3
9 changed files with 224 additions and 61 deletions

View File

@@ -1,13 +1,13 @@
{
"Cache": {
"CacheType": "RedisCache", //MemoryCache
"ip": "localhost",
"ip": "192.168.11.109",
"port": 6379,
"password": "05jWEoJa8v",
"RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=0"
},
"Redis": {
"ip": "localhost",
"ip": "192.168.11.109",
"port": 6379,
"password": "05jWEoJa8v",
"RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=0"

View File

@@ -63,7 +63,7 @@ public class Startup : AppStartup
services.AddSingleton<BackgroundService, TimedTaskBackgroundService>(sp => new TimedTaskBackgroundService());
//var bgSvc = App.GetRequiredService<BackgroundService>();
//bgSvc.StartAsync(CancellationToken.None);
// services.AddHostedService<RedisBackGround>();
services.AddHostedService<RedisBackGround>();
}