Disabling Commands

Last updated: 2020-09-15 10:25:19

    Operation Scenarios

    Using certain Redis commands may result in service instability or mistaken data deletion; therefore, TencentDB for Redis provides the feature to disable such commands.

    TencentDB for Redis supports configuring the disable-command-list parameter to disable commands. If this parameter is not displayed in your console, please submit a ticket to upgrade the backend version. A short disconnection will occur during the version upgrade, and you can reconnect after the upgrade is completed.


    Disabling a Command

    1. Log in to the Redis Console and click an instance name in the instance list to enter the instance management page.
    2. Select Parameter Configuration > Modifiable Parameters and configure the list of commands to be disabled in the disable-command-list parameter line.


      • Commands that can be disabled include flushall, flushdb, keys, hgetall, eval, evalsha, and script, which are not disabled by default on new TencentDB for Redis instances purchased after January 1, 2019.
      • Command disablement will take effect within two minutes for existing links without restarting the Redis service.

    Enabling a Disabled Command

    Select Parameter Configuration > Modifiable Parameters and remove a disabled command from the list of disabled commands in the "Current Value" column to enable the command.

    Parameter Modification History

    View the modification history of a parameter in Parameter Configuration > Modification Log.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback