1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00

Add Client.Do

This commit is contained in:
Vladimir Mihailenco
2018-08-12 11:11:01 +03:00
parent e0dc0beeb5
commit d5fc79d4ee
7 changed files with 112 additions and 11 deletions

View File

@ -420,6 +420,12 @@ func Example_customCommand() {
// Output: "" redis: nil
}
func Example_customCommand2() {
v, err := client.Do("get", "key_does_not_exist").String()
fmt.Printf("%q %s", v, err)
// Output: "" redis: nil
}
func ExampleScanIterator() {
iter := client.Scan(0, "", 0).Iterator()
for iter.Next() {