mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Remove unix client example.
This commit is contained in:
@ -28,17 +28,6 @@ func ExampleNewTCPClient() {
|
||||
// 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() {
|
||||
set := client.Set("foo", "bar")
|
||||
fmt.Println(set.Val(), set.Err())
|
||||
|
Reference in New Issue
Block a user