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

    Modifier and Type
    Method
    Description
    static <K, V> Expiry<K,V>
    Expiry.accessing(BiFunction<K,V,Duration> function)
    Returns an Expiry that 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 an Expiry that 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 an Expiry that 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 Expiry
    Modifier and Type
    Method
    Description
    <K1 extends K, V1 extends V>
    Caffeine<K1,V1>
    Caffeine.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.