Skip to content

feat: add key viewer#8

Merged
AnjayGoel merged 7 commits intomainfrom
new-features
Apr 12, 2026
Merged

feat: add key viewer#8
AnjayGoel merged 7 commits intomainfrom
new-features

Conversation

@AnjayGoel
Copy link
Copy Markdown
Owner

No description provided.

AnjayGoel and others added 7 commits April 12, 2026 22:17
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Scanned: 1976 keys [S]  Monitor: 2s [M]  [?] help  [orange = shortcut]  LOG › ...

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When drilling into a namespace that has no sub-namespaces, fetches and
displays the key's value. Supports all Redis types:
- string: shows value (truncated at 1KB)
- list/set: shows first 10 elements
- hash: shows first 10 field-value pairs
- zset: shows first 10 score-member pairs
- stream: shows entry count

Press ← / Backspace to go back to namespace view.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1. CRITICAL: Replace HGetAll with HScan to avoid OOM on large hashes
2. IMPORTANT: Fix data race on State.KeyValue — clear in scanner goroutine
3. IMPORTANT: Show error message in viewer when FetchKeyValue fails
4. IMPORTANT: Reset showingValue on tab switch to prevent flicker

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Enter/→ on any row in Big Keys or Hot Keys fetches and shows the key's
value. ←/Backspace returns to the table. Works consistently across all
tabs. Extracted fetchAndShowKeyValue helper to avoid duplication.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@AnjayGoel AnjayGoel merged commit 9b5dbdc into main Apr 12, 2026
1 check passed
@AnjayGoel AnjayGoel deleted the new-features branch April 12, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant