Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The caches in this package are Lwt-friendly versions of the caches in Ringo. The documentation of this package assumes you are familiar with Ringo.
module type CACHE_MAP = sig ... end
A Mutable structure akin to a Ringo.CACHE_MAP
but with Lwt-aware functions. E.g., consider the following use of a Ringo.CACHE_MAP
:
module type CACHE_MAP_OPT = sig ... end
This is similar to CACHE_MAP
except that it handles option
. Specifically, you can insert 'a option Lwt.t
and promises that are fulfilled with None
are treated like promises that are rejected:
module type CACHE_MAP_RESULT = sig ... end
This is similar to CACHE_MAP
except that it handles result
. Specifically, you can insert ('a, 'b) result Lwt.t
and promises that are fulfilled with Error _
are treated like promises that are rejected: