增加RCU上离线功能,能耗双通道
This commit is contained in:
@@ -14,7 +14,23 @@ namespace BLWLogProduce
|
||||
builder.Services.AddHostedService<KafkaProduce>();
|
||||
builder.Services.AddHostedService<MyTimer>();
|
||||
|
||||
builder.Services.AddMemoryCache();
|
||||
builder.Services.AddMemoryCache((option)=> { });
|
||||
//builder.UseOrleans(ooo =>
|
||||
//{
|
||||
// ooo.UseLocalhostClustering();
|
||||
// ooo.AddRedisGrainStorage("redis-store", options =>
|
||||
// {
|
||||
// options.ConfigurationOptions = new StackExchange.Redis.ConfigurationOptions
|
||||
// {
|
||||
// EndPoints = { "127.0.0.1:6379" },
|
||||
// AbortOnConnectFail = true,
|
||||
// ConnectRetry = 5,
|
||||
// ConnectTimeout = 15000,
|
||||
// SyncTimeout = 15000
|
||||
// };
|
||||
// });
|
||||
//});
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
||||
Reference in New Issue
Block a user