replace method

FutureOr<void> replace (
  1. String key,
  2. T v,
  3. [Duration expires]
)

Set the given key/value in the cache ONLY IF the key already exists.

Implementation

FutureOr<void> replace(String key, T v, [Duration expires]);