ocaml-lru-cache is a simple OCaml implementation of a cache using the Least Recently Used (LRU) strategy.
Development is hosted on Framagit.
Install the library via OPAM:
opam install lru_cache
Reference documentation is here.
See the test/test_lwt.ml
for an example using Lwt to compute cached values. To compile the example, Lwt must be installed.
make runtest
BSD3, see LICENSE file for its text.