CONFIG-GET(3valkey)
β¨ CONFIG-GET β¨
okay bestie, buckle up β this is CONFIG-GET(3valkey), straight out of the Valkey Command Manual, and it's genuinely one of the most useful little gremlins in the whole server. π
πΈ NAME πΈ
config-get β returns the effective values of configuration parameters. that's it. that's the whole job. and she does it flawlessly. π
π SYNOPSIS π
CONFIG GET parameter [parameter...]
π¦ DESCRIPTION π¦
so the CONFIG GET command is how you read the configuration parameters of a running Valkey server. no restart, no drama, no "let me check the config file real quick" β you just ask and she tells you. periodt. π
the symmetric command β the one that alters the configuration at run time β is CONFIG SET. they're a matching set, like bestie earrings. β¨
here's the part where it gets cute: CONFIG GET takes multiple arguments, and those arguments are glob-style patterns. any configuration parameter that matches <em>any</em> of the patterns gets reported as a list of key-value pairs. and in Valkey 9.0 and later, that list is sorted alphabetically by keys β because we love organization in this house. π§
example, bestie:
127.0.0.1:6379> config get *max-*-entries* maxmemory
1) "hash-max-listpack-entries"
2) "512"
3) "hash-max-ziplist-entries"
4) "512"
5) "maxmemory"
6) "0"
7) "set-max-intset-entries"
8) "512"
9) "set-max-listpack-entries"
10) "128"
11) "zset-max-listpack-entries"
12) "128"
13) "zset-max-ziplist-entries"
14) "128"
look at that. chef's kiss. ππ
you can also get a list of all the supported configuration parameters by typing CONFIG GET * in an open valkey-cli(1) prompt. yes, the humble little star. she contains multitudes. β
all the supported parameters have the same meaning as the equivalent configuration parameter used in the valkey.conf file. same vibe, same meaning, different location. π«Ά
note (and this one's important, don't skip it π): you should look at the valkey.conf file relevant to the version you're working with, because configuration options might change between versions. the link above is to the latest development version. so like, don't read the newest docs and then act surprised when your old server doesn't have the option. iykyk. π
π REPLY π
RESP2
valkey-protocol(7) Array reply: a list of configuration parameters matching the provided arguments.
RESP3
valkey-protocol(7) Map reply: a list of configuration parameters matching the provided arguments.
same info, different outfit. slay. π
π₯ COMPLEXITY π₯
O(N) when N is the number of configuration parameters provided.
so like, the more you ask for, the more work she does. math is math. π
π ACL CATEGORIES π
@admin @dangerous @slow
three whole categories, and two of them are lowkey alarming. @dangerous is not a vibe, it's a warning label. π
π HISTORY π
- Available since: 2.0.0
- Changed in 7.0.0: Added the ability to pass multiple pattern parameters in one call
so she's been iconic since 2.0.0, and 7.0.0 is when she learned to multitask. main character growth arc fr fr. π
π«Ά SEE ALSO π«Ά
acl(3valkey), acl-cat(3valkey), acl-deluser(3valkey), acl-dryrun(3valkey), acl-genpass(3valkey), acl-getuser(3valkey), acl-help(3valkey), acl-list(3valkey), acl-load(3valkey), acl-log(3valkey), acl-save(3valkey), acl-setuser(3valkey), acl-users(3valkey), acl-whoami(3valkey), bgrewriteaof(3valkey), bgsave(3valkey), command(3valkey), command-count(3valkey), command-docs(3valkey), command-getkeys(3valkey), command-getkeysandflags(3valkey), command-help(3valkey), command-info(3valkey), command-list(3valkey), commandlog(3valkey), commandlog-get(3valkey), commandlog-help(3valkey), commandlog-len(3valkey), commandlog-reset(3valkey), config(3valkey), config-help(3valkey), config-resetstat(3valkey), config-rewrite(3valkey), config-set(3valkey), dbsize(3valkey), debug(3valkey), failover(3valkey), flushall(3valkey), flushdb(3valkey), info(3valkey), lastsave(3valkey), latency(3valkey), latency-doctor(3valkey), latency-graph(3valkey), latency-help(3valkey), latency-histogram(3valkey), latency-history(3valkey), latency-latest(3valkey), latency-reset(3valkey), lolwut(3valkey), memory(3valkey), memory-doctor(3valkey), memory-help(3valkey), memory-malloc-stats(3valkey), memory-purge(3valkey), memory-stats(3valkey), memory-usage(3valkey), module(3valkey), module-help(3valkey), module-list(3valkey), module-load(3valkey), module-loadex(3valkey), module-unload(3valkey), monitor(3valkey), psync(3valkey), replconf(3valkey), replicaof(3valkey), restore-asking(3valkey), role(3valkey), save(3valkey), shutdown(3valkey), slowlog(3valkey), slowlog-get(3valkey), slowlog-help(3valkey), slowlog-len(3valkey), slowlog-reset(3valkey), swapdb(3valkey), sync(3valkey), time(3valkey)
that's the whole friend group. go say hi. π¦
and that's the page, bestie β version 9.0.0, dated 2025-10-21. go forth and CONFIG GET *, you absolute legend. πβ¨π
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms