Skip to content

How to set caffeine to support sized based and weight based eviction at same time? #1340

Answered by ben-manes
lfygh asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lfygh
Comment options

@ben-manes
Comment options

@lfygh
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants