Skip to content

Commit

Permalink
docs: mention PipelineMultiplex option in the memory consideration se…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
rueian committed Sep 13, 2023
1 parent 9877c2e commit afc6031
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit afc6031

Please sign in to comment.