Skip to content

feat: add native cache (ncache) and session system with pluggable stores#14

Merged
Nadhila-dot merged 2 commits intodev/unofrom
feat/ncache-session-system-v2
Mar 29, 2026
Merged

feat: add native cache (ncache) and session system with pluggable stores#14
Nadhila-dot merged 2 commits intodev/unofrom
feat/ncache-session-system-v2

Conversation

@JustaCube
Copy link
Copy Markdown
Collaborator

  • res.ncache(data, ttl): cache JSON responses in Rust's LRU cache, bypassing JS bridge on subsequent requests (3.8x throughput improvement)
  • Session middleware with HMAC-SHA256 signed cookies and sharded RwLock storage
  • Direct NAPI session ops (sessionGet/Set/Delete/Destroy) — no bridge round-trip
  • Pluggable store interface: MemoryStore (Rust-backed) and RedisStore (ioredis)
  • Windows compatibility: legacy Monoio driver, single-worker fallback, reuse_port guard

Nadhila-dot and others added 2 commits March 29, 2026 13:18
- res.ncache(data, ttl): cache JSON responses in Rust's LRU cache, bypassing
  JS bridge on subsequent requests (3.8x throughput improvement)
- Session middleware with HMAC-SHA256 signed cookies and sharded RwLock storage
- Direct NAPI session ops (sessionGet/Set/Delete/Destroy) — no bridge round-trip
- Pluggable store interface: MemoryStore (Rust-backed) and RedisStore (ioredis)
- Windows compatibility: legacy Monoio driver, single-worker fallback, reuse_port guard

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Nadhila-dot Nadhila-dot changed the base branch from main to dev/uno March 29, 2026 08:15
@Nadhila-dot Nadhila-dot merged commit e683ec6 into dev/uno Mar 29, 2026
2 checks passed
@Nadhila-dot Nadhila-dot deleted the feat/ncache-session-system-v2 branch March 29, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants