TencentDB for Redis supports disabling some commands that may cause service instability or accidentally delete data.
You can configure 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 minor kernel version. A short disconnection will occur during the version upgrade, and you can reconnect after the upgrade is completed.
disable-command-list
parameter line.
Note:
- Commands that can be disabled include
flushall
,flushdb
,keys
,hgetall
,eval
,evalsha
, andscript
, 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 connections without restarting the Redis service.
On the Parameter Settings > Modifiable Parameters tab, remove a command from the list of disabled commands in Current Value to enable it.
View the parameter modification history on the Parameter Settings > Modification Log tab.
Was this page helpful?