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 设成了 10 微秒 redis> SLOWLOG GET 1) 1) (integer) 12 # 唯一性(unique)的日志标识符 2) (integer) 1324097834 # 被记录命令的执行时间点,以 UNIX 时间戳格式表示 3) (integer) 16 # 查询执行时间,以微秒为单位 4) 1) "CONFIG" # 执行的命令,以数组的形式排列 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" # ...