slow

UK[sl??] US[slo?]

adj. Slow; slow; gentle; slower than...

adv. Slowly; slowly

vt.& vi. (to) slow down, (to) slow down

vi. To slow down; to become depressed

vt. Slow down; hinder

Third person singular: slows Present participle: slowing Past tense: slowed Past participle: slowed Comparative: slower Superlative: slowest

log

英[l?g] 美[l?:g]

n. Log; record; log

v. Logging; load... into official record; travel

Third person singular: logs Plural: logs Present participle: logging Past tense: logged Past participle: logged

redis SLOWLOG command syntax

Function:Slow log is the log system used by Redis to record query execution time.

Syntax: SLOWLOG subcommand [argument]

Description: Query execution time does not include things like client response (talking), sending Reply and other IO operations, but just the time spent executing a query command. In addition, the slow log is stored in the memory and the read and write speed is very fast, so you can use it with confidence and don't have to worry about damaging the speed of Redis by turning on the slow log.

Available versions: >= 2.2.12

Time complexity: O(1)

Return: Depending on different commands, different values ??are returned.

redis SLOWLOG command example

# 為測試需要,將 slowlog-log-slower-than 設(shè)成了 10 微秒
redis> SLOWLOG GET
1) 1) (integer) 12                      # 唯一性(unique)的日志標(biāo)識符
   2) (integer) 1324097834              # 被記錄命令的執(zhí)行時間點,以 UNIX 時間戳格式表示
   3) (integer) 16                      # 查詢執(zhí)行時間,以微秒為單位
   4) 1) "CONFIG"                       # 執(zhí)行的命令,以數(shù)組的形式排列
      2) "GET"                          # 這里完整的命令是 CONFIG GET slowlog-log-slower-than
      3) "slowlog-log-slower-than"
2) 1) (integer) 11
   2) (integer) 1324097825
   3) (integer) 42
   4) 1) "CONFIG"
      2) "GET"
      3) "*"
3) 1) (integer) 10
   2) (integer) 1324097820
   3) (integer) 11
   4) 1) "CONFIG"
      2) "GET"
      3) "slowlog-log-slower-than"
# ...