MCPcopy
hub / github.com/redis/go-redis / RandomPicker

Struct RandomPicker

internal/routing/shard_picker.go:50–50  ·  view source on GitHub ↗

*─────────────────────────────── Random ────────────────────────────────*/

Source from the content-addressed store, hash-verified

48────────────────────────────────*/
49
50type RandomPicker struct{}
51
52func (RandomPicker) Next(total int) int {
53 if total == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected