controllers/cache provides toolkit- and domain-independent storage for opaque cached bytes.
PersistentCache hashes logical keys into filenames and writes through a temporary file followed by atomic replacement. It deliberately does not own serialization, expiration, downloading, or domain validation.
Domain controllers layer their own policy on top. ImageCache stores source image bytes with an .image suffix, while WeatherSnapshotCache serializes a typed forecast snapshot as JSON.
Run its tests from the repository root: