withTTL abstract method
Get a Cache wrapping of this cache with given ttl
as default for all
entries being set using Entry.set.
This only specifies a different default ttl
, to be used when Entry.set
is called without a ttl
parameter.
Implementation
Cache<T> withTTL(Duration ttl);