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

Struct StaticShardPicker

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

StaticShardPicker always returns the same shard index.

Source from the content-addressed store, hash-verified

13
14// StaticShardPicker always returns the same shard index.
15type StaticShardPicker struct {
16 index int
17}
18
19func NewStaticShardPicker(index int) *StaticShardPicker {
20 return &StaticShardPicker{index: index}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected