Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Limit number of items in memory cache #325

Closed
JunTaoLuo opened this issue Jun 29, 2017 · 2 comments
Closed

Limit number of items in memory cache #325

JunTaoLuo opened this issue Jun 29, 2017 · 2 comments
Assignees
Milestone

Comments

@JunTaoLuo
Copy link
Contributor

We need to add an optional count limit on the memory cache to ensure a there is a maximum limit on the memory use of MemoryCache. When the count limit is reached, we will trim a percentage of the items in the cache (we have used 10% in the past).

cc @muratg @Eilon

Post 2.0 we plan to include a size hint to the memory cache and design more extensible eviction policies.

@JunTaoLuo
Copy link
Contributor Author

Followup item filed in #326

@JunTaoLuo
Copy link
Contributor Author

We decided to implement #326 instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants