mirror of
https://github.com/redis/go-redis.git
synced 2025-04-19 07:22:17 +03:00
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")
|
||||
get = c.Get("key2")
|
||||
})
|
||||
fmt.Println(err)
|
||||
fmt.Println(reqs)
|
||||
fmt.Println(err, reqs)
|
||||
fmt.Println(set)
|
||||
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
|
||||
// GET key2: (nil)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user