Releases: pardnchiu/JsonDB
Releases · pardnchiu/JsonDB
v0.1.0-go
Features
Complete Database System Architecture
- TCP Server: Implements a TCP server listening on
127.0.0.1:7989 - CLI Client: Supports
cliinteraction and command execution mode (-cparameter) - 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:
KEYScommand 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 操作系統
- 基礎操作:
GET、SET、DEL、EXISTS、TYPE完整實作 - 模式匹配:
KEYS指令支援 * 和 ? 通配符搜尋 - TTL 管理:
TTL、EXPIRE、PERSIST完整實作,支援自動過期清理 - 類型系統:自動檢測
string、int、object、array類型
雙存儲系統
- AOF 持久化:指令日誌記錄,支援啟動時自動恢復
- 檔案快取:MD5 雜湊三層目錄結構 (data/0/ab/cd/ef/hash.json)
- JSON 格式:包含
created_at、updated_at、expire_at