package lru_cache

  1. Overview
  2. Docs
A simple implementation of a Least-Recently-Used cache

Install

Dune Dependency

Authors

Maintainers

Sources

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

Description

Published: 04 Feb 2024

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

Conflicts

None

OCaml

Innovation. Community. Security.