1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-19 07:22:17 +03:00

Lower case custom command

This commit is contained in:
Vladimir Mihailenco 2017-04-15 13:40:20 +03:00
parent 62ecc61210
commit 7c3f4d045e

View File

@ -332,7 +332,7 @@ func ExampleScript() {
func Example_customCommand() { func Example_customCommand() {
Get := func(client *redis.Client, key string) *redis.StringCmd { Get := func(client *redis.Client, key string) *redis.StringCmd {
cmd := redis.NewStringCmd("GET", key) cmd := redis.NewStringCmd("get", key)
client.Process(cmd) client.Process(cmd)
return cmd return cmd
} }