Repository navigation
v0.3.0
DataCaches v0.3.0
(for more details, see CHANGELOG.md)
Added
-
DataCaches.CacheAssetsto provide a filesystem-like interface to managing
cache assets within a single cache:CacheAssets.ls,CacheAssets.rm, etc. -
DataCaches.Cachesto provide a filesystem-like interface to managing
different caches within the package depot scratchspace:Caches.ls,Caches.rm, etc.
Breaking changes
Unfortunately, to support consistent view on cache assets and cache stores, the following changes need to be made:
-
caches/local/renamed tocaches/user/: Named user stores (DataCache(:name))
now live under<depot>/caches/user/<name>/instead of<depot>/caches/local/<name>/.
Depot.ls()default storetype changed from:localto:user.
Depot._local_dir()renamed toDepot._user_dir()(internal). -
Default cache relocated to
caches/user/_DEFAULT: The no-argumentDataCache()
constructor now stores data at<depot>/caches/user/_DEFAULT/instead of
<depot>/caches/defaultcache/.DataCache(),DataCache(:_DEFAULT), and
default_filecache()all resolve to the same store. Existing v0.2.0 users should
callmigrate_v020_defaultcache()to transfer cached data to the new location.
Automigration functions are provided here to move the default cache from pre-0.3.0. See CHANGELOG.md for details.