Redis – Server Config Get Command

  • Post author:
  • Post category:Redis
  • Post comments:0 Comments

Redis CONFIG GET command is used to read the configuration parameters of a running Redis server. Not all the configuration parameters are supported in Redis 2.4, while Redis 2.6 can read the whole configuration of a server using this command.

Return Value

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

Syntax

Following is the basic syntax of Redis CONFIG GET command.

redis 127.0.0.1:6379> CONFIG GET parameter

Example

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" 

Leave a Reply