CONFIG SET

Syntax

  1. CONFIG SET parameter value [parameter value ...]

Time complexity: O(N) when N is the number of configuration parameters provided

ACL categories: @admin, @slow, @dangerous

The CONFIG SET command is used in order to reconfigure the server at runtime without the need to restart Dragonfly.

The list of configuration parameters supported by CONFIG SET can be obtained by issuing the CONFIG GET * command, which is the symmetrical command used to obtain information about the configuration of a running Dragonfly instance. See the CONFIG GET documentation for more details.

Return

Simple string reply: OK when the configuration was set properly, error otherwise.

Examples

  1. dragonfly> CONFIG SET maxmemory 10gb maxclients 32000
  2. OK
  3. dragonfly> CONFIG GET *
  4. 1) "maxmemory"
  5. 2) "10.00GiB"
  6. 3) "tcp_keepalive"
  7. 4) "300"
  8. 5) "dbnum"
  9. 6) "16"
  10. 7) "maxclients"
  11. 8) "32000"
  12. 9) "dir"
  13. 10) "./data"
  14. 11) "masterauth"
  15. 12) ""
  16. 13) "requirepass"
  17. 14) ""