Last updated: 2020-02-13 09:03:24PDF
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.
Disabling a Command
- Log in to the TencentDB for Redis Console and click an instance ID/name to enter the instance management page.
- Select Parameter Settings > Modifiable Parameters and configure the list of commands to be disabled in the
- 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.