package aches

  1. Overview
  2. Docs
Caches (bounded-size stores) for in-memory values and for resources

Install

Dune Dependency

Authors

Maintainers

Sources

ringo-v1.0.0.tar.gz
md5=c4bfe8506ee67b82bf5a4f5a989711d3
sha512=4c06df137173a605f14d1bf06193e591b02bd61518669f2d77513e7cd9ad7b660d5ea913cbb079eef8ac17246a71422827594dfe5ffaec032284e0de7e660305

doc/aches/Aches/index.html

Module AchesSource

Aches: a variety of caches

Aches is a library that provides caches (limited-size collections with automatic discarding of supernumerary elements) for a variety of uses.

Aches (more nerdily named *ache where the * stands for globbing) provides the following modules:

Vache: Value cache. That is caches for in-memory values. These caches come in different kinds: maps (key-value caches) and sets (value-only caches), and with different policies: FIFO/LRU, Precise/Sloppy size accounting, Strong/Weak GC handling.

Rache: Resource cache. That is caches for resources (file descriptors, network connections, etc.) which need some clean-up beyond simple garbage collection. These caches maintain a strict ownership discipline which you must also follow: resources are either owned by you or by the cache, the owner is responsible for the clean-up.

Sourcemodule Vache = Vache

Value caches

Sourcemodule Rache = Rache

Resource caches

OCaml

Innovation. Community. Security.