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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user