package aches-lwt

  1. Overview
  2. Docs
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 LacheSource

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

Sourcemodule type MAP = sig ... end

MAP are caches for plain promises.

Sourcemodule type MAP_OPTION = sig ... end

MAP_OPTION are caches for option promises (_ option Lwt.t).

Sourcemodule type MAP_RESULT = sig ... end

MAP_RESULT are caches for result promises (_ result Lwt.t).

Functors

Sourcemodule Make (C : Rache.TRANSFER) : MAP with type key = C.key

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.

OCaml

Innovation. Community. Security.