CONFIG GET parameter
The 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.
The symmetric command used to alter the configuration at run time is .
You can obtain a list of all the supported configuration parameters by typing CONFIG GET *
in an open redis-cli
prompt.
All the supported parameters have the same meaning of the equivalent configuration parameter used in the file, with the following important differences:
- The save parameter is a single string of space-separated integers. Every pair of integers represent a seconds/modifications threshold.
save 300 10
that means, save after 900 seconds if there is at least 1 change to the dataset, and after 300 seconds if there are at least 10 changes to the dataset, will be reported by CONFIG GET as "900 1 300 10".
The return type of the command is a .