cached method

FutureOr<SharedMapCached<K, V>> cached({
  1. Duration? timeout,
})

Implementation

FutureOr<SharedMapCached<K, V>> cached({Duration? timeout}) {
  var self = this;
  if (self is Future<SharedMap<K, V>>) {
    return self.cached(timeout: timeout);
  } else {
    return self.cached(timeout: timeout);
  }
}