package lru_cache

All checked builds pass
  1. Overview
  2. Docs
A simple implementation of a Least-Recently-Used cache

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-lru-cache-0.4.0.tar.bz2
md5=700969587b907565f94d5bb434c7114b
sha512=a7ae4b7f5c0f33dfc686f32b277a8b1f0530c5990384a6eacfe2dc22cf5483c2303ffa090fd13d5d3449273500a005b70c5cda7ff9b90e7a6433d2c72974cf22

Description

Added to opam-repository:

README

ocaml-lru-cache

ocaml-lru-cache is a simple OCaml implementation of a cache using the Least Recently Used (LRU) strategy.

Installation

Install the library via OPAM:

opam install lru_cache

Documentation

Reference documentation is here.

Examples

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

License

BSD3, see LICENSE file for its text.

Dependencies (2)

  1. ocaml >= "4.12.0"
  2. dune >= "2.9"

Dev Dependencies (3)

  1. odoc with-doc
  2. lwt_ppx with-test
  3. lwt with-test

Optional Dependencies

None

Conflicts

None

Build status

Results of building lru_cache with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.4.0 (this version) n/a good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure