cache#
- sunpy.data.cache = <sunpy.data.data_manager.cache.Cache object>#
Cache provides a way to download and cache files.
- Parameters:
downloader (Implementation of
DownloaderBase
) – Downloader object for downloading remote files.storage (Implementation of
StorageProviderBase
) – Storage to store metadata about the files.cache_dir (
str
orpathlib.Path
) – Directory where the downloaded files will be stored.expiry (
astropy.units.quantity.Quantity
orNone
, optional) – The interval after which the cache is invalidated. If the expiry isNone
, then the expiry is not checked. Defaults to 10 days.