package janestreet_lru_cache

All checked builds pass
  1. Overview
  2. Docs

Description

Implementation of a Least Recently Used Cache.

Added to opam-repository:

README

Lru_cache

Lru_cache provides caching with least-recently-used eviction policy.

Lru_cache has seen many years of production use in Iron. We intend to make it the preferred LRU cache implementation.

Related functionality (as of 2019-05):

  • Core.Memo.lru: Its interface is written for transparent memoization of functions and thus exposes no access to the cache itself.
  • Memo_cache: Uses a re-implementation of Hash_queue. Cannot change cache capacity after creation. Its README suggests using Core.Memo instead.

Dependencies (4)

  1. dune >= "3.11.0"
  2. ppx_jane >= "v0.17" & < "v0.18~"
  3. core >= "v0.17" & < "v0.18~"
  4. ocaml >= "5.1.0"

Dev Dependencies

None

Optional Dependencies

None

Used by (1)

  1. incremental >= "v0.17.0"

Conflicts

None

Build status

Results of building janestreet_lru_cache with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. 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
v0.17.0 (this version) n/a n/a good good good
v0.16.1 n/a good good n/a n/a
  • 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