LocalCache
LocalCache[CloudObject[uri]]
caches a cloud object in a local object.
LocalCache[URL[url]]
caches the contents of a url in a local object.
LocalCache[obj,LocalObject[name]]
caches the contents of obj in the specified local object.
Details
- LocalCache[obj] chooses the name of the caching local object based on the name of obj.
- Local caches by default are created under the directory given by $CacheBaseDirectory.
- Reevaluating LocalCache[obj] fetches a new copy of obj only if necessary, or if no modification time is available.
- LocalCache[URL[url]] uses URLDownload to obtain the contents of url.
Examples
open allclose allProperties & Relations (2)
Create and cache a cloud object, then update its contents:
The cache still contains the old version:
List all existing cache objects under $CacheBaseDirectory:
Text
Wolfram Research (2016), LocalCache, Wolfram Language function, https://reference.wolfram.com/language/ref/LocalCache.html.
CMS
Wolfram Language. 2016. "LocalCache." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LocalCache.html.
APA
Wolfram Language. (2016). LocalCache. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LocalCache.html