Hi all,
I have a content-addressable store like so:
module Content_store = Irmin.Content_addressable.Make(Irmin_fs_unix.Append_only)(Irmin.Hash.SHA512)(Content)
I would like to architect my application such that:
- The user can configure a set of remotes
- If the application encounters a hash (details omitted, can concretize if necessary) that is not stored in the local content store, it will try to retrieve the content from the configured remotes and save it locally.
It is surely possible to implement this by writing a bunch of custom code, but I was wondering if I was overlooking something in the API to easily enable this. My best lead is to use this module, but it's a bit daunting.
Thanks!