Skip to content

v0.2.0

Choose a tag to compare

@pardnchiu pardnchiu released this 08 Apr 07:40
· 27 commits to master since this release

v0.1.0 -> v0.2.0

Summary

Add document field operations (get/set/del/incr with dot-notation), KEYS glob matching, INCR numeric increment, AOF compaction on close, and shared utility package.

翻譯 新增文件欄位操作(dot-notation 的 get/set/del/incr)、KEYS glob 匹配、INCR 數值遞增、關閉時 AOF 壓縮,以及共用工具套件。

Changes

FEAT

  • Add dot-notation nested field access for GET/SET/DEL/INCR commands
  • Add KEYS command with glob pattern matching
  • Add INCR command supporting both standalone keys and nested JSON fields
  • Add AOF compaction on close with atomic file writes
翻譯
  • 新增 dot-notation 巢狀欄位存取,支援 GET/SET/DEL/INCR 指令
  • 新增 KEYS 指令,支援 glob 模式匹配
  • 新增 INCR 指令,支援獨立 key 與巢狀 JSON 欄位數值遞增
  • 新增關閉時 AOF 壓縮,採用 atomic file write

FIX

  • Fix AOF compaction skipped when no writes occur in current session
翻譯
  • 修正當前 session 無寫入時 AOF compaction 被跳過的問題

REFACTOR

  • Extract WriteFile, Atov, Vtoa, Vtof to core/utils package as shared utilities
翻譯
  • 將 WriteFile、Atov、Vtoa、Vtof 抽至 core/utils 套件作為共用工具

Files Changed

File Status Tag
core/store/getField.go Added FEAT
core/store/setField.go Added FEAT
core/store/delField.go Added FEAT
core/store/incr.go Added FEAT
core/store/incrField.go Added FEAT
core/store/keys.go Added FEAT
core/store/compact.go Added FEAT
core/store/exec.go Modified FEAT
core/store/set.go Modified REFACTOR
core/store/store.go Modified FIX
core/utils/utils.go Added REFACTOR
cmd/test/main.go Modified FIX

Generated by SKILL