Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 05 Apr 12:44
· 24 commits to main since this release

DataCaches v0.3.0

Diff since v0.2.0

(for more details, see CHANGELOG.md)

Added

  • DataCaches.CacheAssets to provide a filesystem-like interface to managing
    cache assets within a single cache: CacheAssets.ls, CacheAssets.rm, etc.

  • DataCaches.Caches to 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 to caches/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 :local to :user.
    Depot._local_dir() renamed to Depot._user_dir() (internal).

  • Default cache relocated to caches/user/_DEFAULT: The no-argument DataCache()
    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
    call migrate_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.