Package | Description |
---|---|
com.github.benmanes.caffeine.cache |
This package contains caching utilities.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Weigher<K,V> |
Weigher.boundedWeigher(Weigher<K,V> delegate)
Returns a weigher that enforces that the weight is non-negative.
|
static <K,V> Weigher<K,V> |
Weigher.singletonWeigher()
Returns a weigher where an entry has a weight of
1 . |
Modifier and Type | Method and Description |
---|---|
static <K,V> Weigher<K,V> |
Weigher.boundedWeigher(Weigher<K,V> delegate)
Returns a weigher that enforces that the weight is non-negative.
|
<K1 extends K,V1 extends V> |
Caffeine.weigher(Weigher<? super K1,? super V1> weigher)
Specifies the weigher to use in determining the weight of entries.
|
Copyright © 2017. All Rights Reserved.