irmin-pack.layered
Contents.Key
Key provides base functions for user-defined contents keys.
Key
irmin-pack
irmin-pack.mem
type t = key
type value = value
val hash : value -> t
Compute a deterministic store key from a string.
val short_hash : t -> int
short_hash h is a small hash of h, to be used for instance as the `hash` function of an OCaml Hashtbl.
short_hash h
h
Hashtbl
val hash_size : int
hash_size is the size of hash results, in bytes.
hash_size
val t : t Irmin__.Type.t
t is the value type for t.
t