Redis Configuration Changes

Log Changes

      • Open redis.conf file.
      • Uncomment the below property and modify the file-name.
      • logfile <file-name>
        • ex: logfile opt/workspace/redis/logs/redis.log
        • Note: By default the logs are visible only in redis-server console.

Security Changes

      • Open redis.conf file.
      • Uncomment the below property and modify the password (Max size of 512 char)
      • requirepass <password>
        • ex: requirepass ranmanic

Rename Commands

      • Open redis.conf file.
      • Add the below properties.
      • rename-command FLUSHALL <custom-key>
        • ex: rename-command FLUSHALL clearAll
        • Note: clearAll is the custom key for the FLUSHALL command.

Some commands are,

      • CONFIG
        • Uses to reconfigure the server at run time without the need to restart Redis.
      • FLUSHDB
        • Uses to clear all the selected database contents.
      • FLUSHALL
        • Uses to clear all contents.
      • RENAME
        • Uses to change the name of a key.
      • SMOVE
        • Uses to move an element of a set from one key to another key.