DocsFeatures
Redis
The Redis tab of Ops browses a Redis like a database: the server's numbers, its keys and their values. It is read-only until you allow changes, and each change waits for your confirmation.

Connect
- In Ops, Add a connection of kind Redis: its host and port, its database number (0 by default) and its environment.
- A Redis server behind a server is reached through an SSH connection of the project, like a database.
- The password goes to the vault, typed on the card when an agent adds the connection. TermF hands it to
redis-clithrough its environment, never on the command line. - Test it.
Read
Open Ops › Redis and pick a Redis in the picker at the top, the same as the SQL studio's, which lists the project's databases and Redis servers. The first keys show at once. A Redis connection in Connections shows the same, in its panel.
- the top line reads
INFO: version, memory used, clients, keys and hit rate; - Pattern and Search list the keys that match, such as
user:*, a page at a time withSCAN(neverKEYS, which blocks the server); Next page goes on; - a click on a key shows its type, its time to live and its value, laid out by type: string, hash, list, set, sorted set or stream, the first 200 items.
Reads go through the redis-read recipe, an allow list of read commands only. Values come back masked like any Ops output.
Change
Allow changes first: the buttons that change something show only then. Delete a key, Expire it in some seconds, Remove the expiry, or Empty the database. A card says what changes, then asks you to type the environment's name.
These go through the redis-write recipe: DEL, UNLINK, EXPIRE, PERSIST, FLUSHDB and FLUSHALL, nothing else.
An agent asks for the same changes through its own card, see Agents that act for you, and reads through the recipes, after your approval.