Skip to content

Releases: JuliaData/DataCaches.jl

v0.4.0

15 Apr 09:50

Choose a tag to compare

DataCaches v0.4.0

Diff since v0.3.0

Majority of updates dealing with better back-end cache management and auto-management, including TTL, auto-expiration by LRU etc.
Conceptual separation between user-labeled namespace and auto-labeled namespace caches allow users curate their entries without pollution from auto-mechanisms.
As usual, full migration pathways provided/documented/(semi-)automated.

(for more details, see CHANGELOG.md)

Closed issues:

  • Register new release (#6)

v0.3.0

05 Apr 12:44

Choose a tag to compare

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.

v0.2.0

03 Apr 22:40

Choose a tag to compare

DataCaches v0.2.0

Diff since v0.1.0

Breaking changes (see CHANGELOG.md)

Moves the default cache store into the Julia depot scratchspace via Scratch.jl (auto-cleanup on uninstall, DATACACHES_DEFAULT_STORE env var override). NOTE: A migrate_legacy_defaultcache() helper migrates v0.1.0 caches to the new location.

Added

  • Adopted Scratch.jl infrastructure for default internal/under-the-hood cache filesystem management.
  • Adds named local stores (DataCache(:symbol)), module-scoped caches (scratch_datacache!(uuid, key)), and a Depot submodule with filesystem-style depot management (Depot.ls, Depot.mv, Depot.cp, Depot.rm).
  • Cache entries now have stable sequence indices (read/delete by index, reindexcache!() to compact).
  • The cache index stores relative paths for portability.

Closed issues:

  • Register initial release (#3)

v0.1.0

03 Apr 08:44

Choose a tag to compare

DataCaches v0.1.0

First release of package.

Merged pull requests:

Closed issues:

  • Make caches portable across file-systems (#2)