This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public PooledRedisClientManager(
126126
127127 RedisResolver = new RedisResolver ( masters , replicas ) ;
128128
129- this . PoolSizeMultiplier = poolSizeMultiplier ?? 20 ;
129+ this . PoolSizeMultiplier = poolSizeMultiplier ?? RedisConfig . DefaultPoolSizeMultiplier ;
130130
131131 this . Config = config ?? new RedisClientManagerConfig
132132 {
Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ public class RedisConfig
5252 /// </summary>
5353 public static int ? DefaultMaxPoolSize ;
5454
55+ /// <summary>
56+ /// The default pool size multiplier if no pool size is specified (default 50)
57+ /// </summary>
58+ public static int DefaultPoolSizeMultiplier = 50 ;
59+
5560 /// <summary>
5661 /// The BackOff multiplier failed Auto Retries starts from (default 10ms)
5762 /// </summary>
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public RedisPoolConfig()
2828 }
2929
3030 /// <summary>
31- /// Maximum ammount of <see cref="ICacheClient"/>s created by the <see cref="RedisManagerPool"/>.
31+ /// Maximum amount of <see cref="ICacheClient"/>s created by the <see cref="RedisManagerPool"/>.
3232 /// </summary>
3333 public int MaxPoolSize { get ; set ; }
3434 }
You can’t perform that action at this time.
0 commit comments