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

Function ExampleNewUniversalClient_cluster

example_test.go:672–679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

670}
671
672func ExampleNewUniversalClient_cluster() {
673 rdb := redis.NewUniversalClient(&redis.UniversalOptions{
674 Addrs: []string{":7000", ":7001", ":7002", ":7003", ":7004", ":7005"},
675 })
676 defer rdb.Close()
677
678 rdb.Ping(ctx)
679}
680
681func ExampleClient_SlowLogGet() {
682 if RECluster {

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.95
PingMethod · 0.65

Tested by

no test coverage detected