Help Center/ Distributed Cache Service/ FAQs/ Redis Commands/ How Do I Rename High-Risk Commands?
Updated on 2024-09-24 GMT+08:00

How Do I Rename High-Risk Commands?

Currently, high-risk commands that can be renamed are COMMAND, KEYS, FLUSHDB, FLUSHALL, HGETALL, SCAN, HSCAN, SSCAN, and ZSCAN. In addition, DBSIZE and DBSTATS can be renamed for Proxy Cluster instances. For details about how to rename them, see Renaming Commands.

  • Currently, Redis does not support disabling of commands. To avoid risks when using the preceding commands, rename them. For details about the supported and disabled commands in DCS, see Command Compatibility.
  • After command renaming is requested, the system will restart the instance. For security purposes, renamed commands cannot be viewed on the console.
  • A command can be renamed multiple times. Each new name overwrites the previous one.
  • Commands can only be renamed for Redis 4.0 and later instances.