-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
InMemoryCacheClient Maximum Size #264
Comments
I'm not sure how you would efficiently get the objects size without a big hit to performance. Have you played around with this any? Typically we know the objects going into cache and can reason about size / maximum items we want to persist. |
Well, you serialize everything you are putting into the cache aren't you? Wouldn't that let you know the size? |
@Terebi42 for the in memory cache, it's an option on whether or not you want to serialize things when adding them to the cache. |
Well, then maybe the maximum size feature would only work when serialization is on? |
Yeah, that's a possibility. Would you want to submit a PR for this feature? |
In addition to being able to limit the total number of items, it would be nice to be able to limit the size, so that items could be removed due to memory pressure.
The text was updated successfully, but these errors were encountered: