Skip to content

Releases: pardnchiu/JsonDB

v0.1.0-go

18 Jul 14:51

Choose a tag to compare

v0.1.0-go Pre-release
Pre-release

Features

Complete Database System Architecture

  • TCP Server: Implements a TCP server listening on 127.0.0.1:7989
  • CLI Client: Supports cli interaction and command execution mode (-c parameter)
  • Multi-Database Support: Allows switching and isolated storage for up to 16 databases (0-15)

Basic KV Operation System

  • Core Operations: Fully implements GET, SET, DEL, EXISTS, TYPE
  • Pattern Matching: KEYS command supports wildcard search with * and ?
  • TTL Management: Fully implements TTL, EXPIRE, PERSIST, with automatic expiration cleanup
  • Type System: Automatically detects types like string, int, object, array

Dual Storage System

  • AOF Persistence: Logs commands and supports automatic recovery on startup
  • File Caching: MD5 hash-based three-level directory structure (data/0/ab/cd/ef/hash.json)
  • JSON Format: Includes created_at, updated_at, expire_at

新增

完整資料庫系統架構

  • TCP 伺服器:實作 127.0.0.1:7989 監聽的 TCP 伺服器
  • CLI 客戶端:支援 cli 互動和指令執行模式(-c 參數)
  • 多資料庫支援:支持最多 16 個資料庫 (0-15) 的切換和隔離存儲

基本 KV 操作系統

  • 基礎操作:GETSETDELEXISTSTYPE 完整實作
  • 模式匹配:KEYS 指令支援 * 和 ? 通配符搜尋
  • TTL 管理:TTLEXPIREPERSIST 完整實作,支援自動過期清理
  • 類型系統:自動檢測 stringintobjectarray 類型

雙存儲系統

  • AOF 持久化:指令日誌記錄,支援啟動時自動恢復
  • 檔案快取:MD5 雜湊三層目錄結構 (data/0/ab/cd/ef/hash.json)
  • JSON 格式:包含 created_atupdated_atexpire_at