-
I want size based and weight based eviction works at the same time? is it possible use native caffeine? |
Beta Was this translation helpful? Give feedback.
Answered by
ben-manes
Nov 27, 2023
Replies: 1 comment 3 replies
-
Nope, you may limit capacity by either the entry count or total weight of all entries. Internally they are the same by using a weight of 1 per entry for a size limit. When would you need both? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ben-manes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope, you may limit capacity by either the entry count or total weight of all entries. Internally they are the same by using a weight of 1 per entry for a size limit. When would you need both?