Skip to content

Changes made#948

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Swayymalcolm99:main
Jun 29, 2026
Merged

Changes made#948
RUKAYAT-CODER merged 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

@RUKAYAT-CODER RUKAYAT-CODER left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for contributing to the project.

@RUKAYAT-CODER RUKAYAT-CODER merged commit 751796c into rinafcode:main Jun 29, 2026
1 check 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.

SearchService autocomplete uses in-memory Map cache with no eviction

3 participants