replace method

void replace (String key, T value, [ Duration expires ])
override

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

Implementation

void replace(String key, T value, [Duration expires]) {
  if (!_store.containsKey(key)) return;

  upsert(key, value, expires);
}