1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Accept interface{} in Eval. Fixes #243.

This commit is contained in:
Vladimir Mihailenco
2016-04-09 11:01:33 +03:00
parent b351402995
commit 5e5a540eb1
3 changed files with 13 additions and 13 deletions

View File

@ -288,7 +288,7 @@ func ExampleScript() {
return false
`)
n, err := IncrByXX.Run(client, []string{"xx_counter"}, []string{"2"}).Result()
n, err := IncrByXX.Run(client, []string{"xx_counter"}, 2).Result()
fmt.Println(n, err)
err = client.Set("xx_counter", "40", 0).Err()
@ -296,7 +296,7 @@ func ExampleScript() {
panic(err)
}
n, err = IncrByXX.Run(client, []string{"xx_counter"}, []string{"2"}).Result()
n, err = IncrByXX.Run(client, []string{"xx_counter"}, 2).Result()
fmt.Println(n, err)
// Output: <nil> redis: nil