Jokul 70db25b337 fix: patch all P1 bugs from project review
- pubsub: add sender.isDestroyed() checks + destroyed event auto-cleanup (P1#10)
- pubsub: add .catch() to monitor() promise + isDestroyed check (P1#11)
- connection: move server.on('error') before server.listen() (P1#12)
- preload: onSubscribeMessage/onMonitorMessage return cleanup functions (P1#9)
- CliView: save and call IPC listener cleanup in onUnmounted (P1#9)
- KeyDetail: move setInterval into onMounted, cleanup in onUnmounted (P1#8)
- key store: add loadKeyVersion guard to prevent race condition (P1#13)
- ListEditor: LSET sentinel + LREM for index-based deletion (P1#14)
- ipc-handlers: remove non-null assertion, add null guard in reorderConnections (P1#16)
- StreamEditor: add Confirm/Cancel buttons to Trim dialog (P1#17)
- KeyBrowser: remove { immediate: true } to prevent double scan (P1#18)
- P1#7 MULTI/EXEC: investigated, not a bug (Redis server handles queuing)
- docs: update PROJECT_REVIEW.md with P1 fix status
2026-07-12 14:18:48 +08:00
2026-07-10 23:05:10 +08:00
2026-07-10 23:05:10 +08:00
2026-07-05 22:48:02 +08:00
2026-07-11 00:17:31 +08:00
2026-07-12 00:42:49 +08:00
2026-07-04 19:56:37 +08:00

JRedisDesktop

基于 Electron + Vue 3 + Vite 的现代 Redis 桌面管理器。

Fork 自 AnotherRedisDesktopManager。 旧版 Vue 2 代码库已归档至 legacy/

功能特性

连接管理

  • 创建、编辑、删除连接(主机/端口/密码)
  • TLS/SSL 支持
  • 测试连接 - 保存前验证连接是否成功
  • 导入/导出 - JSON 格式连接配置
  • 健康检查 + 自动重连指示器

Key 浏览器

  • 模式搜索 - 支持 Redis MATCH 语法(如 user:*cache:??
  • 本地过滤快速搜索
  • SCAN 分页加载
  • 树形视图(按 key 分隔符分组)
  • 多选批量操作
  • 批量删除(pipeline

类型编辑器

  • String - 查看/编辑,自动 JSON 格式化
  • Hash - 字段表格,支持增删改
  • List - 分页查看,支持推入/编辑/移除
  • Set - 成员列表,支持过滤/添加/移除
  • Zset - 有序集合,显示分数
  • Stream - 流数据查看,字段管理

Key 操作

  • TTL - 查看和编辑过期时间
  • 重命名 - 支持存在性检查
  • 复制键名 - 一键复制到剪贴板
  • 单个/批量删除

分析工具

  • Redis CLI - 交互式终端,支持命令历史
  • 慢日志 - 查看慢命令及耗时
  • INFO 仪表板 - 服务器统计信息
  • 数据库选择器 - 切换 DB 0-15

设置

  • 主题 - 深色、浅色、跟随系统
  • 语言 - English / 中文
  • SCAN 数量 - 每次扫描的 key 数量
  • 字体大小 - 可调节

快捷键

快捷键 功能
Ctrl+N 新建连接
Ctrl+R 刷新 key 列表
F5 刷新 key 列表
Delete 删除选中的 key
Escape 取消选择

开发

npm install
npm run dev       # electron-vite 开发模式,支持 HMR
npm run build     # 生产构建

打包

npm run build:linux
npm run build:mac
npm run build:win

技术栈

  • 主进程: Electron 33
  • 预加载: contextBridge + 类型化 IPC
  • 渲染进程: Vue 3 + Pinia + Element Plus
  • 构建工具: electron-vite + Vite 6 + TypeScript 5
  • Redis 客户端: ioredis 5
  • 持久化: electron-store + safeStorage(加密凭据)

架构

Electron 主进程 (src/main/)
  ├── RedisService      # ioredis 封装(连接、扫描、CRUD、Stream
  ├── electron-store    # 持久化(连接配置、设置)
  ├── safeStorage       # 凭据加密
  └── ipc-handlers      # 所有 IPC 通道处理

预加载 (src/preload/)
  └── contextBridge → window.electronAPI

渲染进程 (src/renderer/src/)
  ├── stores/           # Pinia 状态管理(connection, key, app
  ├── components/       # Vue 3 组件
  ├── i18n/             # 国际化(英文 + 中文)
  └── composables/      # 组合式函数(useKeyboard

License

MIT

S
Description
桌面端Redis客户端
Readme 4 MiB
v2.0.2 Latest
2026-07-12 15:33:01 +08:00
Languages
Vue 55.6%
TypeScript 41.1%
CSS 2.7%
Shell 0.3%
JavaScript 0.2%