Check if a hash exists in cache.
bool has(String integrity) { final path = _pathForHash(integrity); if (path == null) return false; return File(path).existsSync(); }