Skip to content

feat: Use LRUCache instead of Map in MemoryCache#774

Open
ishaanxgupta wants to merge 2 commits intosupermemoryai:mainfrom
ishaanxgupta:ishaan/lru
Open

feat: Use LRUCache instead of Map in MemoryCache#774
ishaanxgupta wants to merge 2 commits intosupermemoryai:mainfrom
ishaanxgupta:ishaan/lru

Conversation

@ishaanxgupta
Copy link

Replaced the native Map used in tools's MemoryCache with an lru-cache to help prevent unbounded memory growth over long sessions.
Included a max setting of 100 to cap the cache size.

@graphite-app graphite-app bot requested a review from Dhravya March 8, 2026 09:41
@MaheshtheDev MaheshtheDev self-requested a review March 9, 2026 19:56
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.

1 participant