package janestreet_lru_cache

  1. Overview
  2. Docs
An LRU Cache implementation.

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=947e47ee2eb15d5329a49d65f296b47fa74cbe4b5ed799f8b62bb274820d269c

Description

Implementation of a Least Recently Used Cache.

Published: 26 May 2024

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

Used by (1)

  1. incremental >= "v0.17.0"

Conflicts

None

OCaml

Innovation. Community. Security.