Create and change a key

Create a key, edit its value, set or remove a TTL and rename it.

In short

Create a key, change its value, set or remove its time to live, or rename it - on any connection that is not read-only. Every edit is one line in the audit trail, and there is no undo.

Before you start

Change a key

  1. Open the key from the Keys tab.
  2. Use the controls for its type (see the table) and save.
  3. To set a time to live, type seconds in Seconds (3600 is one hour) and press "Set TTL". "Remove TTL" makes the key permanent.
  4. To rename, press "Rename", type the new name and press "Rename" again.

Rename overwrites If a key with the new name exists, the server replaces it and its old value is lost. Scan for the new name first.

Create a key

  1. On the Keys tab press "New key" and type the key name, for example user:42.
  2. Choose the "Type": String, Hash, List, Set or Sorted set.
  3. Fill in the first value - for a hash also the first field, for a sorted set also the score.
  4. For a string, optionally enter a TTL in seconds; leave it blank for no expiry.
  5. Press "Create key". The list rescans and the new key opens.

Good to know

Example A flag stays on for one customer on Staging. Scan flags:customer:*, open the hash, Edit new_checkout to false, then set a TTL of 3600 so the next stale copy clears itself.

If something goes wrong

Related