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
- Select the logical database in the Database dropdown. The screenshot uses database 3.
- 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.
- 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.
- 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
- If the key is missing, confirm the logical database and check the search text against the full key name. Load more keys if the tree offers another page.
- If the grid differs from the screenshot, check the open tab’s key name and the type shown in Key Info.
Limits
- Key search scans one logical database in pages. The results describe the portion scanned so far.
- The grid shows a snapshot. Refresh the view when you need to check a value that may have changed.