Skip to content

Tasca: roadhero/agentic-playground#5 - #8

Open
tasca-dev[bot] wants to merge 1 commit into
mainfrom
tasca/roadhero-agentic-playground-5-201ebd9f
Open

Tasca: roadhero/agentic-playground#5#8
tasca-dev[bot] wants to merge 1 commit into
mainfrom
tasca/roadhero-agentic-playground-5-201ebd9f

Conversation

@tasca-dev

@tasca-dev tasca-dev Bot commented Jun 8, 2026

Copy link
Copy Markdown

No description provided.

Implement LruCache<K, V> in src/cache/lru-cache.ts backed by a Map's
insertion-order guarantee. get() and set() both promote an entry to
most-recently-used; the least-recently-used entry is evicted on overflow.
has() is a non-mutating probe.

Add dependency-free tests (node:test) covering eviction order, get/set
recency promotion, update-in-place, and capacity 0/1 edge cases. Include
a strict tsconfig and a package.json test script.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

0 participants