Redis前缀添加到配置文件
This commit is contained in:
parent
70981fb985
commit
469e59628c
@ -488,7 +488,7 @@ async Task RunProgram()
|
||||
host.Services.AddStackExchangeRedisCache(options =>
|
||||
{
|
||||
options.Configuration = redisOptions.Configuration;
|
||||
options.InstanceName = "mes-etl_"; // 缓存键前缀mes-etl_
|
||||
options.InstanceName = redisOptions.InstanceName;
|
||||
});
|
||||
var app = host.Build();
|
||||
await app.RunAsync();
|
||||
|
@ -2,7 +2,7 @@
|
||||
"CmdOptions": {
|
||||
"InputFileType": "CSV",
|
||||
"InputDir": "D:/MyDumper-ZST",
|
||||
"TaskCount": 4,
|
||||
"TaskCount": 6,
|
||||
"FlushCount": 10000,
|
||||
"Isutf8mb4": true,
|
||||
"OldestShardKey": 23000,
|
||||
@ -12,6 +12,7 @@
|
||||
"MySqlMaster": "Server=127.0.0.1;Port=33309;UserId=root;Password=123456;Database=cferp_test;"
|
||||
},
|
||||
"RedisCacheOptions": {
|
||||
"Configuration": "192.168.1.246:6380"
|
||||
"Configuration": "192.168.1.246:6380",
|
||||
"InstanceName" : "mes-etl:"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user