SqlOtter

Find a Redis key and read its contents

Select the logical database, locate a key, and use Key Content and Key Info to inspect it.

When to use this

Key Content displays a key’s value in columns suited to its native Redis type. For a list, the index column gives the zero-based position of each element.

Use this when checking what a key contains, confirming list order, or looking up its expiry.

Before you start

Open a Redis connection in a SqlOtter build that supports Redis. Use a Redis account with permission to scan the logical database and read the target key.

Steps

  1. Select the logical database in the Database dropdown. The screenshot uses database 3.
  2. Find the key by expanding namespace folders. You can also enter the key name in the tree search field and press Enter to submit a Redis scan.
  3. Select the key and choose Key Content. Check the full key name in the tab, then read the grid for that key’s data type.
  4. Choose Key Info for the same key to inspect its type and TTL. A TTL of −1 means the key has no expiry.

How to verify the result

In the test example, phase19:direct_db3:add:list opens as a two-element list. The index and value columns show seed at position 0 and added at position 1.

Troubleshooting

Limits

Related guides