I am happy to announce that MlFront_Cache.2.3.0
, a framework for transient caches and slowly varying data, was released today. It is available on opam with opam update
and opam install MlFront_Cache
.
MlFront_Cache lets you cache files and directories, all backed in a local sqlite3 database. It is a bit esoteric. I use it for:
- Transient caches when downloading zip files.
- Immutable installs for DkCoder. A related use case is covered in detail in the docs as “Downloading datasets”.
Treat this as an alpha release with a somewhat unstable API. In particular, I haven’t implemented cache eviction yet.
Here are the relevant links:
- Docs: https://dkml.gitlab.io/build-tools/MlFront/MlFront_Cache/MlFront_Cache/index.html
- homepage: DkML / Build Tools / MlFront · GitLab
Sidenote: The docs won’t be available on ocaml.org. Use the doc links above until I figure out a technical solution (very low-priority).