config

UK[kənˈfɪg] US[kənˈfɪg]

v.To configure; to set; to take shape; to give a certain form

get

##英[get] 美[ɡɛt]

vt.Get; catch; persuade; receive (punishment, etc.)

vt.& vi. Arrive, come

vi. Become; start; try to deal with; obtain benefits or wealth

n. Reproduce, cub; profit

Third person singular: gets now Participle: getting Past tense: got Past participle: got gotten

redis CONFIG GET command syntax

Function: CONFIG GET command is used to obtain the configuration parameters of the running Redis server. In the Redis 2.4 version, some parameters cannot be accessed with CONFIG GET, but in the latest version In Redis 2.6 version, all configuration parameters can already be accessed using CONFIG GET.

Syntax: CONFIG GET parameter

Description: CONFIG GET accepts a single parameter parameter as a search keyword to find all matching configuration parameters, where Parameters and values ​​are arranged in key-value pairs.

Available versions: >= 2.0.0

Time complexity: Unclear

Return: The value of the given configuration parameter.

redis CONFIG GET command example

redis> CONFIG GET s*
1) "save"                       # 参数名:save
2) "900 1 300 10 60 10000"      # save 参数的值
3) "slave-serve-stale-data"     # 参数名: slave-serve-stale-data
4) "yes"                        # slave-serve-stale-data 参数的值
5) "set-max-intset-entries"     # ...
6) "512"
7) "slowlog-log-slower-than"
8) "1000"
9) "slowlog-max-len"
10) "1000"