Command Compatibility

<p>This article describes the commands that Redis does not support.</p> <p>For the sake of security, Ping An Cloud Redis forbids the execution of some commands that require higher permissions.</p> <p>Currently, the Redis Cluster does not support the commands listed in the following table:</p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="background-color:#ededed; vertical-align:top"> <p><strong>Type</strong></p> </td> <td style="background-color:#ededed; vertical-align:top"> <p><strong>Command</strong></p> </td> <td style="background-color:#ededed; vertical-align:top"> <p><strong>Description</strong></p> </td> </tr> <tr> <td rowspan="6" style="vertical-align:top"> <p>Key</p> </td> <td style="vertical-align:top"> <p>MIGRATE</p> </td> <td style="vertical-align:top"> <p>Atomically migrates the key from the current instance to the specified database of the target instance.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>KEYS</p> </td> <td style="vertical-align:top"> <p>Queries all keys matching the specified pattern. For example, KEYS h?llo matches hello, hallo, hxllo, etc.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>MOVE</p> </td> <td style="vertical-align:top"> <p>Moves the key from the current database to the specified database.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>RENAME</p> </td> <td style="vertical-align:top"> <p>Renames key to newkey.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>RENAMENX</p> </td> <td style="vertical-align:top"> <p>Renames key to newkey. newkey must not exist before the command execution.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>SORT</p> </td> <td style="vertical-align:top"> <p>Returns the sorted elements that are contained in the specified list, set, or sorted set.</p> </td> </tr> <tr> <td rowspan="8" style="vertical-align:top"> <p>Server</p> </td> <td style="vertical-align:top"> <p>SHUTDOWN</p> </td> <td style="vertical-align:top"> <p>Stops all clients and disables the Redis server.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>CONFIG SET</p> </td> <td style="vertical-align:top"> <p>Dynamically adjusts the Redis server configuration without restarting it.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>CONFIG REWRITE</p> </td> <td style="vertical-align:top"> <p>Rewrites the specified <strong>redis.conf</strong> file when you starts the Redis server.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>CONFIG RESETSTAT</p> </td> <td style="vertical-align:top"> <p>Resets some statistical data in the INFO command.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>FLUSHDB</p> </td> <td style="vertical-align:top"> <p>Deletes all keys in the current database.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>FLUSHALL</p> </td> <td style="vertical-align:top"> <p>Deletes all keys from the Redis server (all keys in all databases).</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>CLUSTER MEET</p> </td> <td style="vertical-align:top"> <p>Connects to another Redis cluster node and places that node into a working cluster.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>CLUSTER FORGET</p> </td> <td style="vertical-align:top"> <p>Removes the specified node from the Redis cluster.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>String</p> </td> <td style="vertical-align:top"> <p>MSETNX</p> </td> <td style="vertical-align:top"> <p>Configures one or more key-value pairs, only if all the specified keys do not exist.</p> </td> </tr> <tr> <td rowspan="4" style="vertical-align:top"> <p>List</p> </td> <td style="vertical-align:top"> <p>RPOPLPUSH</p> </td> <td style="vertical-align:top"> <p>Removes the last element (tail) of the list stored at source, and inserts it to the&nbsp; head element of the list stored at destination.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>BRPOP</p> </td> <td style="vertical-align:top"> <p>Removes and gets the last element in a list. If the list does not have any elements to pop out, this command blocks the connection until the connection times out or an element is popped out of the list.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>BLOPOP</p> </td> <td style="vertical-align:top"> <p>Removes and gets the first element in a list. If the list does not have any elements to pop out, this command blocks the connection until the connection times out or an element is popped out of the list.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>BRPOPLPUSH</p> </td> <td style="vertical-align:top"> <p>Pops out the last element (tail) of the list stored at source and pushes it at the first element (head) of the list stored at destination. If the list stored at source does not have any elements, it blocks the connection until that list times out or an element is popped out of that list.</p> </td> </tr> <tr> <td rowspan="2" style="vertical-align:top"> <p>HyperLogLog</p> </td> <td style="vertical-align:top"> <p>PFMERGE</p> </td> <td style="vertical-align:top"> <p>Merges multiple HyperLogLog values into one.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>PFCOUNT</p> </td> <td style="vertical-align:top"> <p>&bull;&nbsp; Returns the approximated cardinality of the Hyperloglog stored at the specified key when a single key is called;</p> <p>&bull;&nbsp; Returns the approximated cardinality of the union of the Hyperloglogs when multiple keys are called.</p> </td> </tr> <tr> <td rowspan="5" style="vertical-align:top"> <p>Transaction</p> </td> <td style="vertical-align:top"> <p>DISCARD</p> </td> <td style="vertical-align:top"> <p>Cancels a transaction and quits executing all commands in the transaction block.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>EXEC</p> </td> <td style="vertical-align:top"> <p>Executes all commands in a transaction block.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>MULTI</p> </td> <td style="vertical-align:top"> <p>Marks the start of a transaction block.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>UNWATCH</p> </td> <td style="vertical-align:top"> <p>Unwatches all watched keys.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>WATCH</p> </td> <td style="vertical-align:top"> <p>Watches one or multiple keys. If these key are changed before the WATCH command is executed, the entire transaction will be canceled.</p> </td> </tr> <tr> <td rowspan="6" style="vertical-align:top"> <p>Scripting</p> </td> <td style="vertical-align:top"> <p>EVAL</p> </td> <td style="vertical-align:top"> <p>Evaluates a Lua script. The syntax is EVAL script numkeys key[key&hellip;] arg[arg&hellip;].</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>EVALSHA</p> </td> <td style="vertical-align:top"> <p>Similar to EVAL, this command is used to evaluate a script. However, in order to save bandwidth, the first parameter accepted by EVALASHA is not the script, but the SHA1 checksum of the script.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>SCRIPT EXISTS</p> </td> <td style="vertical-align:top"> <p>Checks the existence of a script in the script cache based on the specified script checksum.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>SCRIPT FLUSH</p> </td> <td style="vertical-align:top"> <p>Removes all the scripts from the script cache.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>SCRIPT KILL</p> </td> <td style="vertical-align:top"> <p>Kills the script that is being executed.</p> </td> </tr> <tr> <td style="vertical-align:top"> <p>SCRIPT LOAD</p> </td> <td style="vertical-align:top"> <p>Loads a script into the script cache without executing the script.</p> </td> </tr> </tbody> </table>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products