getStats method

  1. @override
Future<Iterable<CacheStat?>> getStats(
  1. String name,
  2. Iterable<String> keys
)
override

Returns a Iterable over all the non nullable CacheStore CacheStats keys requested of a named cache. It provides a optimized retrieval strategy that avoids reading the CacheEntry implementation into memory

  • name: The cache name
  • keys: The list of keys

Implementation

@override
Future<Iterable<CacheStat?>> getStats(String name, Iterable<String> keys) {
  return Future.value(keys.map((key) => _cacheStore(name)[key]));
}