set abstract method
Set the value stored in this cache entry.
If given ttl
specifies the time-to-live. Notice that this is advisatory,
the underlying CacheProvider may choose to evit cache entries at any
time. However, it can be assumed that entries will not live far past
their ttl
.
The set method is a best-effort method. In case of intermittent failures from the underlying CacheProvider the set method will ignore failures.
To ensure that cache entries are purged, use the purge method with
retries
not set to zero.
Implementation
Future<T?> set(T? value, [Duration ttl]);