Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/redis/go-redis
/ Next
Method
Next
internal/routing/shard_picker.go:11–11 ·
view source on GitHub ↗
(total int)
Source
from the content-addressed store, hash-verified
9
// ReqDefault and the command has no keys.
10
type
ShardPicker
interface
{
11
Next(total int) int
// returns an index in [0,total)
12
}
13
14
// StaticShardPicker always returns the same shard index.
Callers
15
iterator_test.go
File · 0.65
BenchmarkPoolGetPut
Function · 0.65
BenchmarkPoolGetPutWithMinIdle
Function · 0.65
BenchmarkPoolConcurrentGetPut
Function · 0.65
BenchmarkPoolAndPubSubMixed
Function · 0.65
BenchmarkPoolHighContention
Function · 0.65
slotShardPickerSlaveNode
Method · 0.65
mapCmdsByNode
Method · 0.65
cmdNodeWithShardPicker
Method · 0.65
BenchmarkRedisPing
Function · 0.65
BenchmarkRedisGetNil
Function · 0.65
BenchmarkRedisSetString
Function · 0.65
Implementers
4
ScanIterator
iterator.go
StaticShardPicker
internal/routing/shard_picker.go
RoundRobinPicker
internal/routing/shard_picker.go
RandomPicker
internal/routing/shard_picker.go
Calls
no outgoing calls
Tested by
15
BenchmarkPoolGetPut
Function · 0.52
BenchmarkPoolGetPutWithMinIdle
Function · 0.52
BenchmarkPoolConcurrentGetPut
Function · 0.52
BenchmarkPoolAndPubSubMixed
Function · 0.52
BenchmarkPoolHighContention
Function · 0.52
BenchmarkRedisPing
Function · 0.52
BenchmarkRedisGetNil
Function · 0.52
BenchmarkRedisSetString
Function · 0.52
BenchmarkRedisSetGetBytes
Function · 0.52
benchmarkRedisGet
Function · 0.52
benchmarkRedisGetToBuffer
Function · 0.52
benchmarkRedisSetGetBuffer
Function · 0.52