Skip to content

Redis

Right-click in the tree ▸ Add ▸ Redis request.

A Redis tab in Command mode: the server URL, the HGET command and its arguments (key, field), and the free-form command field

FieldRole
URLredis://, rediss:// (TLS) or redis-cluster://
PasswordAccepts a Secret-typed value
Modesubscribe or command

A Channels field: the list of channels to subscribe to. Published messages arrive as they come in the response panel.

Two ways of expressing the command:

  1. the built-in palette — a dropdown (GET, SET, DEL, HGET, HSET, LPUSH, RPUSH, LRANGE, PUBLISH, XADD, XREAD) plus a list of arguments;
  2. the free-form command, a text field along the lines of SET foo bar.

The free-form command wins over the palette when it is filled in. That is the mode to use for anything the palette does not cover.

  • Redis subscribe — subscribes and emits one event per message received;
  • Redis close — closes the subscription;
  • Redis command — runs a single command on a fresh connection and returns its reply (it is a request / response action, not a long-lived connection).

See Connections and streams.

Six targets, for both subscribing and commands: JavaScript (ioredis), redis-cli and Python (redis-py).