getCachedFilePathForBulk method

  1. @override
FutureOr<Map<String, String>> getCachedFilePathForBulk(
  1. Iterable<String> digests
)
override

Gets the cached file path for the given digests in bulk.

Implementation

@override
FutureOr<Map<String, String>> getCachedFilePathForBulk(
  Iterable<String> digests,
) {
  for (final digest in digests) {
    if (!_cache.containsKey(digest)) {
      throw Exception(
        '$_tag: getCachedFilePathForBulk: asked path for non existing digest: $digest',
      );
    }
  }
  return _cache;
}