package irmin-pack
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=2a1e6a7577e498fbfeb678d666da210dc48d1344637e8ecb653e1dd88c640b5f
sha512=3fb6f49a1af2f8bab1df5b6f5affaaa09f09fe892a08eb2d9de58138e56646d4a6797f3c087b22875e36e3411218ab2435fe5437ac78f323dd661932af021fad
doc/irmin-pack.mem/Irmin_pack_mem/Maker/Make/Tree/Contents/index.html
Module Tree.Contents
Operations on lazy tree contents.
hash t
is the hash of the contents
value returned when t
is force
d successfully. See caching
for an explanation of the cache
parameter.
val key : t -> contents_key option
key t
is the key of the contents
value returned when t
is force
d successfully.
force t
forces evaluation of the lazy content value t
, or returns an error if no such value exists in the underlying repository.
Equivalent to force
, but raises an exception if the lazy content value is not present in the underlying repository.
val clear : t -> unit
clear t
clears t
's cache.
caching
cache
regulates the caching behaviour regarding the node's internal data which are be lazily loaded from the backend.
cache
defaults to true
which may greatly reduce the IOs and the runtime but may also grealy increase the memory consumption.
cache = false
doesn't replace a call to clear
, it only prevents the storing of new data, it doesn't discard the existing one.