CONFIG GET

Syntax

1. CONFIG GET parameter

Time complexity: O(N) when N is the number of configuration parameters provided

ACL categories: @admin, @slow, @dangerous

The CONFIG GET command is used to read the configuration parameters of a running Dragonfly server.

The symmetric command used to alter the configuration at runtime is CONFIG SET.

CONFIG GET takes a single argument, which uses the glob-style pattern. Any configuration parameters matching the pattern are reported as a list of key-value pairs.

Return

Array reply: list of key-value pairs for configuration parameters.

Examples

Use the command and glob-style pattern below to read configuration parameters that are prefixed with max.

1. dragonfly> CONFIG GET max*
2. 1) "maxmemory"
3. 2) "12.11GiB"
4. 3) "maxclients"
5. 4) "64000"

You can also read all the supported configuration parameters by using the * wildcard.

1. dragonfly> CONFIG GET *
2. 1) "maxmemory"
3. 2) "32.00GiB"
4. 3) "tcp_keepalive"
5. 4) "300"
6. 5) "dbnum"
7. 6) "16"
8. 7) "maxclients"
9. 8) "64000"
10. 9) "dir"
11. 10) "./data"
12. 11) "masterauth"
13. 12) ""
14. 13) "requirepass"
15. 14) ""