From afc60315193faad25d0fcb5980f9f6abc7820f7b Mon Sep 17 00:00:00 2001 From: Rueian Date: Wed, 13 Sep 2023 23:19:26 +0800 Subject: [PATCH] docs: mention PipelineMultiplex option in the memory consideration section --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d8a6db32..75512f18 100644 --- a/README.md +++ b/README.md @@ -278,6 +278,8 @@ Its size is controlled by the `ClientOption.RingScaleEachConn` and the default v If you have many rueidis connections, you may find that they occupy quite amount of memory. In that case, you may consider reducing `ClientOption.RingScaleEachConn` to 8 or 9 at the cost of potential throughput degradation. +You may also consider setting the value of `ClientOption.PipelineMultiplex` to `-1`, which will let rueidis use only 1 connection for pipelining to each redis node. + ## Lua Script The `NewLuaScript` or `NewLuaScriptReadOnly` will create a script which is safe for concurrent usage.