diff --git a/v2/example_test.go b/v2/example_test.go index cb180803..b78448b4 100644 --- a/v2/example_test.go +++ b/v2/example_test.go @@ -7,7 +7,7 @@ import ( "github.com/vmihailenco/redis/v2" ) -func ExampleTCPClient() { +func ExampleNewTCPClient() { client := redis.NewTCPClient(&redis.Options{ Addr: "localhost:6379", Password: "", // no password set @@ -20,7 +20,7 @@ func ExampleTCPClient() { // Output: PONG } -func ExampleUnixClient() { +func ExampleNewUnixClient() { client := redis.NewUnixClient(&redis.Options{ Addr: "/tmp/redis.sock", }) @@ -31,7 +31,7 @@ func ExampleUnixClient() { // Output: PONG } -func ExampleSetGet() { +func ExampleSet() { client := redis.NewTCPClient(&redis.Options{ Addr: ":6379", }) @@ -85,7 +85,7 @@ func incr(tx *redis.Multi) ([]redis.Cmder, error) { return cmds, err } -func ExampleTransaction() { +func ExampleMulti() { client := redis.NewTCPClient(&redis.Options{ Addr: ":6379", })