Skip to content

feat: Use LRUCache instead of Map in MemoryCache#774

Merged
MaheshtheDev merged 2 commits intosupermemoryai:mainfrom
ishaanxgupta:ishaan/lru
Mar 20, 2026
Merged

feat: Use LRUCache instead of Map in MemoryCache#774
MaheshtheDev merged 2 commits intosupermemoryai:mainfrom
ishaanxgupta:ishaan/lru

Conversation

@ishaanxgupta
Copy link
Copy Markdown
Contributor

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
@ishaanxgupta
Copy link
Copy Markdown
Contributor Author

@Dhravya @MaheshtheDev please have a look

Copy link
Copy Markdown
Member

@claude review this PR

@claude
Copy link
Copy Markdown

claude Bot commented Mar 20, 2026

Claude Code is working…

I'll analyze this and get back to you.

View job run

Copy link
Copy Markdown
Member

@MaheshtheDev MaheshtheDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great contributions, good to merge

@MaheshtheDev MaheshtheDev merged commit 239fc12 into supermemoryai:main Mar 20, 2026
1 of 2 checks passed
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