Class
FileETagHashCache
Caches the content hashes used for advanced ETag comparison.
actor FileETagHashCache
Overview
Hashing a file means reading all of it, so the result is worth keeping. The cache is an actor rather than a dictionary in Application.storage for two reasons: storage hands back a copy, so read-modify-write updates could lose entries, and a shared mutable dictionary can’t dedupe concurrent work. Here a miss becomes a single task that every caller for that file awaits.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype_Concurrency.Actor