package lru

  1. Overview
  2. Docs
Scalable LRU caches

Install

Dune Dependency

Authors

Maintainers

Sources

lru-0.2.0.tbz
sha256=a0d5a8622c6389679253da8a0ee3834bba42537e6e3029a57441d59c9396a72d
md5=0de0ccda69b0b07a1c8169395782617f

CHANGES.md.html

v0.2.0 2017-03-31

Breaking changes:

  • resize no longer drops bindings if the new size pushes the queue over capacity.

  • of_list has simpler semantics; dropped the cap parameter.

Other changes:

  • Replace Lru.M.cache with more general Lru.memo.

  • Queues with 0 initial capacity are legal.

  • Add trim to shrink a queue to its capacity, as queues are no longer guaranteed to have size smaller than capacity.

  • find gets the promote parameter, allowing queries that do not change the order.

  • add gets the trim parameter, allowing insertions that do not drop old entries.

v0.1.1 2016-11-28

  • Fix missing dep on psq in META.

v0.1.0 2016-11-22

First release.

OCaml

Innovation. Community. Security.