Releases: JuliaData/DataCaches.jl
v0.4.0
DataCaches v0.4.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
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.
v0.2.0
DataCaches v0.2.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
DataCaches v0.1.0
First release of package.
Merged pull requests:
- Bump julia-actions/cache from 2 to 3 (#1) (@dependabot[bot])
Closed issues:
- Make caches portable across file-systems (#2)