Command query window provides a redis-cli like interface for you to interact with Redis server with Redis commands.
Command query window
In the command input text view, you can enter any valid Redis commands. Multiple commands are separated by new line chars (
\n) unless they are inside quotes.
Click the Execute Selected button will execute the current line that contains the caret. You can also run multiple commands by making a range selection covering all these commands.
Command names are case-insensitive.
Readonly commands that won't modify database will show in orange in the input text view. Whereas others will show in blue.
Arguments of a command are separated by whitespaces (spaces or
\t). Sometimes you may want to include these separators in the argument. If that's the case, you can use
'to wrap the argument.
set keyname "content that contains a space"
set keyname 'content that contains a space'
\) can be used to "protect" quotes if the arguments contain quotes:
set keyname "content that contains both spaces \"and\" quotes"
Additionally, you can use
\nto insert newlines when the content is wrapped with double quotes:
set keyname "content that contains a \n newline"
Similarly, use backslashes to "protect" backslashes:
set keyname "content that contains a \\"
Use quotes (
') to wrap an argument across multiple lines:
local a = 1
local b = 2
return a + b