Skip to content

Ensure expired items are removed from the cache#20

Merged
jwoertink merged 1 commit intomainfrom
issues/19
Mar 19, 2026
Merged

Ensure expired items are removed from the cache#20
jwoertink merged 1 commit intomainfrom
issues/19

Conversation

@jwoertink
Copy link
Copy Markdown
Member

Fixes #19 (partially)

This is a tricky one because if an item expires, and you never read that item again, the expired item will just sit there. We would need to implement some sort of global sweeper that goes through and cleans up old expired items... But I have no clue where that would live. Sounds like a cron job, but I don't think this shard should handle cron. Maybe we can just create a simple worker file, and it would be up to you to decide when that gets ran?

@jwoertink jwoertink merged commit 75f13e6 into main Mar 19, 2026
7 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.

Potential memory leak in memory store

1 participant