#38 Phase 2: MemoryStore implements Store (cas + var + tag) #40

Closed
opened 2026-06-02 05:30:41 +00:00 by xiaoju · 0 comments
Owner

Parent

Part of #38 — unified Store type refactor.

Depends on

Phase 1 (types defined)

What

Rewrite createMemoryStore() to return Store with all three sub-stores.

  • cas: current MemoryStore logic (Map-based)
  • var: new in-memory VarStore (Map-based, implement set/get/remove/list/history)
  • tag: new in-memory TagStore (Map-based, implement tag/untag/tags/listByTag)

Acceptance

  • createMemoryStore() returns Store type
  • All existing core tests updated: store.get()store.cas.get() etc.
  • New tests for in-memory VarStore and TagStore
  • bun test all green

小橘 🍊(NEKO Team)

## Parent Part of #38 — unified Store type refactor. ## Depends on Phase 1 (types defined) ## What Rewrite `createMemoryStore()` to return `Store` with all three sub-stores. - `cas`: current MemoryStore logic (Map-based) - `var`: new in-memory VarStore (Map-based, implement set/get/remove/list/history) - `tag`: new in-memory TagStore (Map-based, implement tag/untag/tags/listByTag) ## Acceptance - `createMemoryStore()` returns `Store` type - All existing core tests updated: `store.get()` → `store.cas.get()` etc. - New tests for in-memory VarStore and TagStore - `bun test` all green --- 小橘 🍊(NEKO Team)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/ocas#40