When downloading data via the crates.io API, we could cache it for later reuse. This would help if the user wants to view both crates and publishers commands for their crate or adjust the cargo-metadata parameters (e.g. target platform).
The timestamp of when the data was downloaded should be preserved; the cached data should be used only if the --cache-max-age configuration allows it.
If there are any cache entries with a timestamp from the future, they should be discarded.
When downloading data via the crates.io API, we could cache it for later reuse. This would help if the user wants to view both
cratesandpublisherscommands for their crate or adjust the cargo-metadata parameters (e.g. target platform).The timestamp of when the data was downloaded should be preserved; the cached data should be used only if the
--cache-max-ageconfiguration allows it.If there are any cache entries with a timestamp from the future, they should be discarded.