MCPcopy
hub / github.com/go-redsync/redsync / WithShufflePools

Function WithShufflePools

redsync.go:152–156  ·  view source on GitHub ↗

WithShufflePools can be used to shuffle Redis pools to reduce centralized access in concurrent scenarios.

(b bool)

Source from the content-addressed store, hash-verified

150
151// WithShufflePools can be used to shuffle Redis pools to reduce centralized access in concurrent scenarios.
152func WithShufflePools(b bool) Option {
153 return OptionFunc(func(m *Mutex) {
154 m.shuffle = b
155 })
156}
157
158// randomPools shuffles Redis pools.
159func randomPools(pools []redis.Pool) {

Callers

nothing calls this directly

Calls 1

OptionFuncFuncType · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…