Disable Commands

Last updated: 2019-11-06 15:52:44

PDF

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 2.8 Standard Edition, 4.0 Standard Edition, and 4.0 Cluster Edition support configuring the disable-command-list parameter to disable such 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 simply reconnect after the upgrade is completed.

Directions

Disabling a Command

  1. Log in to the TencentDB for Redis Console and click an instance ID/name to enter the instance management page.
  2. Select Parameter Settings > 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 Settings > Modifiable Parameters and remove a disabled command from the list of disabled commands in Current Value to enable the command.

Parameter Modification History

You can view the modification history of a parameter in Parameter Settings > Modification Log.