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(
126
126
127
127
RedisResolver = new RedisResolver ( masters , replicas ) ;
128
128
129
- this . PoolSizeMultiplier = poolSizeMultiplier ?? 20 ;
129
+ this . PoolSizeMultiplier = poolSizeMultiplier ?? RedisConfig . DefaultPoolSizeMultiplier ;
130
130
131
131
this . Config = config ?? new RedisClientManagerConfig
132
132
{
Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ public class RedisConfig
52
52
/// </summary>
53
53
public static int ? DefaultMaxPoolSize ;
54
54
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
+
55
60
/// <summary>
56
61
/// The BackOff multiplier failed Auto Retries starts from (default 10ms)
57
62
/// </summary>
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public RedisPoolConfig()
28
28
}
29
29
30
30
/// <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"/>.
32
32
/// </summary>
33
33
public int MaxPoolSize { get ; set ; }
34
34
}
You can’t perform that action at this time.
0 commit comments