Skip to content

BetterDB for Valkey v1.5.0

Latest

Choose a tag to compare

@KIvanow KIvanow released this 15 Apr 14:38
0b1cf77

Import & Export Keys

Export keys from the key browser to plain text (.txt) or binary (.rdb) format. Plain text exports generate Redis commands. Binary exports use JSONL with base64-encoded DUMP payloads for exact byte-level fidelity.

Import from either format with three conflict strategies: Skip, Overwrite, or Abort. Both export and import use streaming I/O, so large keyspaces won't blow up memory. Operations are cancellable via the progress indicator.

The default filename includes the connection name. Access via toolbar buttons in the Keys view, the command palette (BetterDB: Export Keys / BetterDB: Import Keys), or the connection context menu.

Inline TTL Editing

Edit a key's TTL directly from the key tree. Right-click a key and select Edit TTL..., or click the pencil icon for a quick-pick menu. Set a new TTL in seconds, or enter -1 to persist the key. Input is validated - 0 and non-integer values are rejected.

Changes update the tree tooltip immediately (optimistic update with rollback on failure). Any open key editor panel syncs the new TTL live.

Rename Keys

Right-click a key and select Rename Key.... If a key with the new name already exists, you'll be prompted to confirm the overwrite. The old editor tab closes and a new one opens under the renamed key automatically.

Other Improvements

  • Edit Key quick-pick (pencil icon) provides fast access to both TTL editing and renaming
  • Shared description/tooltip builders for cleaner tree item rendering
  • bindValkeyCall helper centralizes raw Valkey call binding
  • Improved zset score parsing for +inf/-inf
  • 25 new tests (10 export, 15 import) - 89 total

Install or update from the VS Code Marketplace or Open VSX Registry.