logCacheData method

void logCacheData(
  1. String key,
  2. CacheWrapper cache, {
  3. required Storage storage,
  4. required int ttlValue,
})

Implementation

void logCacheData(
  String key,
  CacheWrapper cache, {
  required Storage storage,
  required int ttlValue,
}) {
  storage.log(
      "Fetch cache data for key $key: ${cache.data} will expire in ${cache.expireIn(ttlValue)}ms");
}