Help › Explore a database
Change a Redis key
Create a key, edit its value, add and remove fields, items and members, set its expiry, rename it or delete it from the keys tab.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
In a keys tab, the buttons above a key's value change that key. Each change is one of a fixed set of operations, never a command you have to type, so Querlyn knows what it does and asks before the ones that matter; see What asks first.
To open a keys tab and choose a key, see Browse the keys of a Redis database.
Create a key
- Choose (the New Key… button in the tab's bar).
- Type the key's name. With a folder selected in the tree, the name starts with that folder's prefix.
- Choose its Type and fill in its first value: a string's value, a
hash's first field and value, a list's first item, a set's first
member, a sorted set's first member and score, a stream's first entry
(one
field=valueon each line), or a JSON document. - Choose Create Key.
Nothing is replaced: when a key with that name exists, Querlyn says so and creates nothing.
Edit a value
(the Edit… button) edits:
- a string's or a JSON document's whole value;
- the value of the hash field selected in the grid;
- the list item selected in the grid;
- the score of the sorted set member selected in the grid.
A string keeps its expiry. A list item is replaced only while it still holds what the grid shows: when the list changed in between, Querlyn changes nothing and says so. Read the key again and retry.
What you type is stored as text, exactly as written. A value that is not
text, or one longer than 256 KiB, is not edited in the dialog: change it
with a command in a query tab, where a quoted argument takes \x and two
hex digits for any byte.
Add and remove parts
(the Add… button) adds a field to a hash, an item to a list (at its end or its front), a member to a set, a member with its score to a sorted set, or an entry to a stream. A hash field or a sorted set member that exists already gets the new value or score.
(the Remove Row button) removes the row selected in the grid: a hash's field, a list's item, a set's or sorted set's member, a stream's entry. A list item is removed at its position, and only while it still holds what the grid shows. A key whose last part is removed is gone: Redis keeps no empty keys.
Set when a key expires
(the Expiry… button) takes
a number of seconds, or a time such as 15m, 2h or 7d. Leave the
field empty for a key that never expires.
Rename or delete a key
gives the key a new name. Nothing is
replaced: when a key with the new name exists, Querlyn says so and renames
nothing. On a cluster a key is renamed only within its slot: Querlyn
refuses a new name in another slot before it sends anything, and says
which slots; names that share a tag in braces, such as {user:7}:cart and
{user:7}:basket, are in one slot.
deletes the key and everything it holds. Querlyn frees a large key's memory in the server's background where the server can.
Warning: Redis has nothing to undo a deleted key with.
What asks first
| Change | Asks |
|---|---|
| Deleting a key | Wherever the connection asks before destructive statements: on Testing, Staging and Production connections unless you changed that |
| Every other change | On a Production connection |
On a Production connection the question is confirmed like any other there, with Touch ID where you turned that on; see Confirm with Touch ID. To change when a connection asks, see Confirm risky statements.
A read-only connection refuses every change; see Make a connection read-only.
Help for Querlyn 0.1.0. All help topics