Interface Cache.Expiry<K,V>

Enclosing class:
Cache<K,V>

public static interface Cache.Expiry<K,V>
A lifetime chosen per entry, from when it is written.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    millisToLive(K key, V value)
    Milliseconds the entry lives after being stored, or Long.MAX_VALUE for no limit.