Returns the effective values of configuration parameters.
CONFIG
GET
parameter
[parameter…]
The CONFIG GET
command is used to read the configuration
parameters of a running Valkey server.
The symmetric command used to alter the configuration at run time is
CONFIG SET
.
CONFIG GET
takes multiple arguments, which are
glob-style patterns. Any configuration parameter matching any of the
patterns are reported as a list of key-value pairs. Example:
127.0.0.1:6379> config get *max-*-entries* maxmemory
1) "maxmemory"
2) "0"
3) "hash-max-listpack-entries"
4) "512"
5) "hash-max-ziplist-entries"
6) "512"
7) "set-max-intset-entries"
8) "512"
9) "zset-max-listpack-entries"
10) "128"
11) "zset-max-ziplist-entries"
12) "128"
You can obtain a list of all the supported configuration parameters
by typing CONFIG GET *
in an open valkey-cli
prompt.
All the supported parameters have the same meaning of the equivalent configuration parameter used in the valkey.conf file:
Note that you should look at the valkey.conf file relevant to the version you’re working with as configuration options might change between versions. The link above is to the latest development version.
Array reply: a list of configuration parameters matching the provided arguments.
Map reply: a list of configuration parameters matching the provided arguments.
O(N) when N is the number of configuration parameters provided
@admin @dangerous @slow
ACL, ACL CAT, ACL DELUSER, ACL DRYRUN, ACL GENPASS, ACL GETUSER, ACL HELP, ACL LIST, ACL LOAD, ACL LOG, ACL SAVE, ACL SETUSER, ACL USERS, ACL WHOAMI, BGREWRITEAOF, BGSAVE, COMMAND, COMMAND COUNT, COMMAND DOCS, COMMAND GETKEYS, COMMAND GETKEYSANDFLAGS, COMMAND HELP, COMMAND INFO, COMMAND LIST, CONFIG, CONFIG HELP, CONFIG RESETSTAT, CONFIG REWRITE, CONFIG SET, DBSIZE, DEBUG, FAILOVER, FLUSHALL, FLUSHDB, INFO, LASTSAVE, LATENCY, LATENCY DOCTOR, LATENCY GRAPH, LATENCY HELP, LATENCY HISTOGRAM, LATENCY HISTORY, LATENCY LATEST, LATENCY RESET, LOLWUT, MEMORY, MEMORY DOCTOR, MEMORY HELP, MEMORY MALLOC-STATS, MEMORY PURGE, MEMORY STATS, MEMORY USAGE, MODULE, MODULE HELP, MODULE LIST, MODULE LOAD, MODULE LOADEX, MODULE UNLOAD, MONITOR, PSYNC, REPLCONF, REPLICAOF, RESTORE-ASKING, ROLE, SAVE, SHUTDOWN, SLOWLOG, SLOWLOG GET, SLOWLOG HELP, SLOWLOG LEN, SLOWLOG RESET, SWAPDB, SYNC, TIME.