Uses of Interface
com.github.benmanes.caffeine.cache.Expiry
Packages that use Expiry
Package
Description
This package contains in-memory caching functionality.
-
Uses of Expiry in com.github.benmanes.caffeine.cache
Methods in com.github.benmanes.caffeine.cache that return ExpiryModifier and TypeMethodDescriptionstatic <K,V> Expiry <K, V> Expiry.accessing(BiFunction<K, V, Duration> function) Returns anExpirythat specifies that the entry should be automatically removed from the cache once the duration has elapsed after the entry's creation, replacement of its value, or after it was last read.static <K,V> Expiry <K, V> Expiry.creating(BiFunction<K, V, Duration> function) Returns anExpirythat specifies that the entry should be automatically removed from the cache once the duration has elapsed after the entry's creation.static <K,V> Expiry <K, V> Expiry.writing(BiFunction<K, V, Duration> function) Returns anExpirythat specifies that the entry should be automatically removed from the cache once the duration has elapsed after the entry's creation or replacement of its value.Methods in com.github.benmanes.caffeine.cache with parameters of type ExpiryModifier and TypeMethodDescriptionCaffeine.expireAfter(Expiry<? super K1, ? super V1> expiry) Specifies that each entry should be automatically removed from the cache once a duration has elapsed after the entry's creation, the most recent replacement of its value, or its last read.