A content-addressable store is an indexed read-write store in which values are keyed directly by their hashes.
Read-only stores are store where it is only possible to read existing values.
type key = G.Hash.t
The type for keys.
type value = V.t
The type for raw values.
find t k is
Some v if
k is associated to
k is not present in
Write the contents of a value to the store. It's the responsibility of the content-addressable store to generate a consistent key.
add but allows specifying the key directly. The backend might choose to discard that key and/or can be corrupt if the key scheme is not consistent.
close t frees up all the resources associated with
t. Any operations run on a closed handle will raise