forked from mirror/redis
Remove unix client example.
This commit is contained in:
parent
75c8dbf91d
commit
c819f1e039
|
@ -28,17 +28,6 @@ func ExampleNewTCPClient() {
|
||||||
// Output: PONG <nil>
|
// Output: PONG <nil>
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleNewUnixClient() {
|
|
||||||
client := redis.NewUnixClient(&redis.Options{
|
|
||||||
Addr: "/tmp/redis.sock",
|
|
||||||
})
|
|
||||||
defer client.Close()
|
|
||||||
|
|
||||||
ping := client.Ping()
|
|
||||||
fmt.Println(ping.Val(), ping.Err())
|
|
||||||
// Output: PONG <nil>
|
|
||||||
}
|
|
||||||
|
|
||||||
func ExampleClient() {
|
func ExampleClient() {
|
||||||
set := client.Set("foo", "bar")
|
set := client.Set("foo", "bar")
|
||||||
fmt.Println(set.Val(), set.Err())
|
fmt.Println(set.Val(), set.Err())
|
||||||
|
|
Loading…
Reference in New Issue