package aches-lwt
Caches (bounded-size stores) for Lwt promises
Install
Dune Dependency
Authors
Maintainers
Sources
ringo-v1.0.0.tar.gz
md5=c4bfe8506ee67b82bf5a4f5a989711d3
sha512=4c06df137173a605f14d1bf06193e591b02bd61518669f2d77513e7cd9ad7b660d5ea913cbb079eef8ac17246a71422827594dfe5ffaec032284e0de7e660305
doc/aches-lwt.lache/Lache/index.html
Module Lache
Source
Lache
Lache is a library for Lwt-promise caches.
More specifically, Lache provides modules implementing caches for Lwt promises. These caches are based on Aches.Rache
's Transfer-cache but store promises.
Note that Lache should not be used to cache resources which may need any form of clean-up (e.g., file-descriptors or network connections). Lache should only be used for promises. These promises are canceled when they are purged from the cache.
Caches
MAP_OPTION
are caches for option promises (_ option Lwt.t
).
MAP_RESULT
are caches for result promises (_ result Lwt.t
).
Functors
Make(C)
is a MAP
. The cache policies are that of C
.
Make_option(C)
is a MAP_OPTION
. The cache policies are that of C
.
Make_result(C)
is a MAP_RESULT
. The cache policies are that of C
.