Skip to content

Changes made#948

Open
Swayymalcolm99 wants to merge 1 commit into
rinafcode:mainfrom
Swayymalcolm99:main
Open

Changes made#948
Swayymalcolm99 wants to merge 1 commit into
rinafcode:mainfrom
Swayymalcolm99:main

Conversation

@Swayymalcolm99

Copy link
Copy Markdown

Closed #810
Replaced unbounded Map with LRU cache (capped at 1000 entries) to prevent memory leaks from uncontrolled autocomplete cache growth. Removed manual timestamp-based TTL logic in favor of LRU cache's native 5-minute TTL enforcement. Added tests verifying cache eviction when cap is reached and TTL configuration.

Replaced unbounded Map with LRU cache (capped at 1000 entries) to prevent memory leaks from uncontrolled autocomplete cache growth. Removed manual timestamp-based TTL logic in favor of LRU cache's native 5-minute TTL enforcement. Added tests verifying cache eviction when cap is reached and TTL configuration.
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Swayymalcolm99 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

SearchService autocomplete uses in-memory Map cache with no eviction

2 participants