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

Rename SlowLog to SlowLogGet

This commit is contained in:
Vladimir Mihailenco
2020-09-09 17:42:05 +03:00
parent 457cdea58f
commit 690d9a94f3
5 changed files with 5 additions and 18 deletions

View File

@ -511,7 +511,7 @@ func ExampleNewUniversalClient_cluster() {
rdb.Ping(ctx)
}
func ExampleClient_SlowLog() {
func ExampleClient_SlowLogGet() {
const key = "slowlog-log-slower-than"
old := rdb.ConfigGet(ctx, key).Val()
@ -524,7 +524,7 @@ func ExampleClient_SlowLog() {
rdb.Set(ctx, "test", "true", 0)
result, err := rdb.SlowLog(ctx, -1).Result()
result, err := rdb.SlowLogGet(ctx, -1).Result()
if err != nil {
panic(err)
}