Skip to content

Is it possible to easily use Sync with a content-addressable, apend-only store? #2328

@kentookura

Description

@kentookura

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions