Medis 2 User Guide
Search…
Command Query
Command query window provides a redis-cli like interface for you to interact with Redis server with Redis commands.
Command query window

Basic usage

In the command input text view, you can enter any valid Redis commands. Multiple commands are separated by new line chars (\n).
Click the execute button will execute the current line that contains the caret. You can also execute multiple commands at the same time by making a range selection to cover all these commands.
Command names are case-insensitive.

Command colors

Readonly commands that won't modify database will show in orange in the input text view. Whereas others will show in blue.

Quote Encoding

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 " or ' to wrap the argument.
For example:
1
set keyname "content that contains a space"
2
set keyname 'content that contains a space'
Copied!
Backslashes (\) can be used to "protect" quotes if the arguments contain quotes:
1
set keyname "content that contains both spaces \"and\" quotes"
Copied!
Additionally, you can use \n to insert newlines when the content is wrapped with double quotes:
1
set keyname "content that contains a \n newline"
Copied!
Similarlly, use backslashes to "protect" backslashes:
1
set keyname "content that contains a \\"
Copied!
Last modified 9d ago