package janestreet_lru_cache

  1. Overview
  2. Docs
An LRU Cache implementation.

Install

Dune Dependency

Authors

Maintainers

Sources

v0.16.1.tar.gz
md5=e79b2e68172b1d57ed6cf1ef3e307a66
sha512=c709c400b62d282d6051f3504cf37aaf3922f725853f43b2b72ec0fb2ab517e23020ff23b41c4b1a9724a74164c8f98825194389d30796af63c128a8012e4ec2

Description

Implementation of a Least Recently Used Cache.

Published: 02 Feb 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 >= "2.0.0"
  2. ppx_jane >= "v0.16" & < "v0.17"
  3. core >= "v0.16" & < "v0.17"
  4. ocaml >= "4.14.0"

Dev Dependencies

None

Used by (1)

  1. incremental >= "v0.16.1"

Conflicts

None