Clarify what affects the size of the premium list entry cache

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=149680785
This commit is contained in:
mcilwain 2017-03-09 12:19:41 -08:00 committed by Ben McIlwain
parent 3b2a014524
commit fa5d23bc19

View file

@ -178,8 +178,9 @@ public final class PremiumList extends BaseDomainLabelList<Money, PremiumList.Pr
* changed once created, so the cache need not ever expire.
*
* <p>A maximum size is set here on the cache because it can potentially grow too big to fit in
* memory if there are a very large number of premium list entries in the system. The least-
* accessed entries will be evicted first.
* memory if there are a large number of distinct premium list entries being queried (both those
* that exist, as well as those that might exist according to the bloom filter, must be cached).
* The entries judged least likely to be accessed again will be evicted first.
*/
@VisibleForTesting
static final LoadingCache<Key<PremiumListEntry>, Optional<PremiumListEntry>>