mirror of https://github.com/go-redis/redis.git
readme: Simplify pipeline example.
This commit is contained in:
parent
1d39fd8348
commit
075cf971dd
|
@ -62,12 +62,10 @@ We can also pipeline two commands together:
|
||||||
set = c.Set("key1", "hello1")
|
set = c.Set("key1", "hello1")
|
||||||
get = c.Get("key2")
|
get = c.Get("key2")
|
||||||
})
|
})
|
||||||
fmt.Println(err)
|
fmt.Println(err, reqs)
|
||||||
fmt.Println(reqs)
|
|
||||||
fmt.Println(set)
|
fmt.Println(set)
|
||||||
fmt.Println(get)
|
fmt.Println(get)
|
||||||
// Output: <nil
|
// Output: <nil> [SET key1 hello1: OK GET key2: (nil)]
|
||||||
// Output: <nil> [SET key1 hello1: OK GET key2: (nil)]>
|
|
||||||
// SET key1 hello1: OK
|
// SET key1 hello1: OK
|
||||||
// GET key2: (nil)
|
// GET key2: (nil)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue