mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-31 13:53:38 +01:00
Merge branch 'main' of https://github.com/Penumbra-Sync/server
This commit is contained in:
commit
d7e664477f
8 changed files with 43 additions and 23 deletions
|
|
@ -124,7 +124,7 @@ public class Startup
|
|||
new RedisHost(){ Host = address, Port = port },
|
||||
},
|
||||
AllowAdmin = true,
|
||||
ConnectTimeout = 3000,
|
||||
ConnectTimeout = options.ConnectTimeout,
|
||||
Database = 0,
|
||||
Ssl = false,
|
||||
Password = options.Password,
|
||||
|
|
@ -135,7 +135,8 @@ public class Startup
|
|||
UnreachableServerAction = ServerEnumerationStrategy.UnreachableServerActionOptions.Throw,
|
||||
},
|
||||
MaxValueLength = 1024,
|
||||
PoolSize = 50,
|
||||
PoolSize = mareConfig.GetValue(nameof(ServerConfiguration.RedisPool), 50),
|
||||
SyncTimeout = options.SyncTimeout,
|
||||
};
|
||||
|
||||
services.AddStackExchangeRedisExtensions<SystemTextJsonSerializer>(redisConfiguration);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue