has method

bool has(
  1. String integrity
)

Check if a hash exists in cache.

Implementation

bool has(String integrity) {
  final path = _pathForHash(integrity);
  if (path == null) return false;
  return File(path).existsSync();
}