package aches-lwt
Caches (bounded-size stores) for Lwt promises
Install
Dune Dependency
Authors
Maintainers
Sources
ringo-v1.1.0.tar.gz
md5=c9c5400e7ae19100b945279835ff3e5c
sha512=7f37b721e2ca32e5e96fbf8df1bbd72c9060b6826bd95a21ea81af5fdd0c1961d3d7fb41210966aac7c277ec7f91fd32e3e284b583cb02121dc589646642f5c0
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
.