MCPcopy
hub / github.com/redis/go-redis / Example_customCommand2

Function Example_customCommand2

example_test.go:627–631  ·  example_test.go::Example_customCommand2
()

Source from the content-addressed store, hash-verified

625}
626
627func Example_customCommand2() {
628 v, err := rdb.Do(ctx, "get", "key_does_not_exist").Text()
629 fmt.Printf("%q %s", v, err)
630 // Output: "" redis: nil
631}
632
633func ExampleScanIterator() {
634 iter := rdb.Scan(ctx, 0, "", 0).Iterator()

Callers

nothing calls this directly

Calls 3

TextMethod · 0.80
DoMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected