getStat method

  1. @override
Future<CacheStat?> getStat(
  1. String name,
  2. String key
)
override

Returns the CacheStat for the specified cache key. It provides an optimized retrieval strategy that avoids reading the CacheEntry implementation into memory

  • name: The cache name
  • key: The cache key

Implementation

@override
Future<CacheStat?> getStat(String name, String key) {
  return Future.value(_cacheStore(name)[key]);
}