mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add NewFailoverClusterClient
This commit is contained in:
committed by
Vladimir Mihailenco
parent
b273d2bf57
commit
6c85ee767a
@ -80,7 +80,7 @@ func ExampleNewClusterClient_manualSetup() {
|
||||
// clusterSlots returns cluster slots information.
|
||||
// It can use service like ZooKeeper to maintain configuration information
|
||||
// and Cluster.ReloadState to manually trigger state reloading.
|
||||
clusterSlots := func() ([]redis.ClusterSlot, error) {
|
||||
clusterSlots := func(ctx context.Context) ([]redis.ClusterSlot, error) {
|
||||
slots := []redis.ClusterSlot{
|
||||
// First node with 1 master and 1 slave.
|
||||
{
|
||||
|
Reference in New Issue
Block a user