w3resource

Redis Server: CONFIG GET parameter

Redis CONFIG GET Command

Redis CONFIG GET command is used to read the configuration parameters of a running Redis server. The CONFIG GET command takes a single argument, which is a glob-style pattern. All the configuration parameters matching this parameter are reported as a list of key-value pairs.

Here are some common uses and scenarios for the "CONFIG GET" command:

  • Configuration Retrieval: Retrieves the current value of one or more Redis configuration parameters.
  • Diagnostics: Useful for diagnosing configuration-related issues by checking the current settings.
  • Monitoring: Assists in monitoring and auditing configuration values to ensure they meet operational requirements.
  • Dynamic Adjustments: Helps in making dynamic adjustments to Redis settings by providing current values for comparison.

Syntax:

CONFIG GET parameter 

Available since

2.0.0.

Return Value

The return type of the command is a Bulk string reply.

Return Value Type

String

Example: Redis CONFIG GET

redis 127.0.0.1:6379> config get *max-*-entries* 
1) "hash-max-zipmap-entries"
2) "512"
3) "list-max-ziplist-entries"
4) "512"
5) "set-max-intset-entries"
6) "512"

Previous: COMMAND INFO
Next: CONFIG REWRITE



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/redis/redis-server-config-get-parameter.php