summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/config-get.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/config-get.md')
-rw-r--r--iredis/data/commands/config-get.md61
1 files changed, 27 insertions, 34 deletions
diff --git a/iredis/data/commands/config-get.md b/iredis/data/commands/config-get.md
index f4a4b34..d2e85a3 100644
--- a/iredis/data/commands/config-get.md
+++ b/iredis/data/commands/config-get.md
@@ -1,51 +1,44 @@
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.
+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
-`CONFIG SET`.
+The symmetric command used to alter the configuration at run time is `CONFIG
+SET`.
-`CONFIG GET` 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. Example:
+`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:
```
-redis> 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"
+redis> 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 `redis-cli` prompt.
All the supported parameters have the same meaning of the equivalent
-configuration parameter used in the [redis.conf][hgcarr22rc] file, with the
-following important differences:
+configuration parameter used in the [redis.conf][hgcarr22rc] file:
-[hgcarr22rc]: http://github.com/redis/redis/raw/2.8/redis.conf
+[hgcarr22rc]: http://github.com/redis/redis/raw/unstable/redis.conf
-- Where bytes or other quantities are specified, it is not possible to use the
- `redis.conf` abbreviated form (`10k`, `2gb` ... and so forth), everything
- should be specified as a well-formed 64-bit integer, in the base unit of the
- configuration directive.
-- The save parameter is a single string of space-separated integers. Every pair
- of integers represent a seconds/modifications threshold.
+Note that you should look at the redis.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.
-For instance what in `redis.conf` looks like:
-
-```
-save 900 1
-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".
@return