Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to expire filter's cache based on access time #803

Closed
sebaes opened this issue Mar 22, 2011 · 1 comment
Closed

Add option to expire filter's cache based on access time #803

sebaes opened this issue Mar 22, 2011 · 1 comment

Comments

@sebaes
Copy link

sebaes commented Mar 22, 2011

LRU, Soft and Weak are the current FilterCache options, but none of them expire elements based on last access time.

Add expire flag accepting a time value based setting (5s, 10m) that will cause filters to be expired after that time if not accessed.

With current implementations, in theory, the cache would grow to it's maximum if we keep creating filters used not permanently, but for a long enough time to consider caching them. An example would be time based filters, like {today, yesterday, past week, past month}, that are created anew each day.

@kimchy
Copy link
Member

kimchy commented Mar 22, 2011

Add option to expire filter's cache based on access time, closed by e759b4c.

@kimchy kimchy closed this as completed Mar 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants