WithShufflePools can be used to shuffle Redis pools to reduce centralized access in concurrent scenarios.
(b bool)
| 150 | |
| 151 | // WithShufflePools can be used to shuffle Redis pools to reduce centralized access in concurrent scenarios. |
| 152 | func WithShufflePools(b bool) Option { |
| 153 | return OptionFunc(func(m *Mutex) { |
| 154 | m.shuffle = b |
| 155 | }) |
| 156 | } |
| 157 | |
| 158 | // randomPools shuffles Redis pools. |
| 159 | func randomPools(pools []redis.Pool) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…