Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pascutto/cachecache

Efficient caching library for OCaml
https://github.com/pascutto/cachecache

cache ocaml

Last synced: 3 months ago
JSON representation

Efficient caching library for OCaml

Awesome Lists containing this project

README

        


CacheCache


An efficient caching library for OCaml.



[![license](https://img.shields.io/github/license/pascutto/cachecache.svg?style=flat-square)](LICENSE)

[![OCaml-CI Build Status](https://img.shields.io/endpoint?url=https%3A%2F%2Fci.ocamllabs.io%2Fbadge%2Fpascutto%2Fcachecache%2Fmain&logo=ocaml&style=flat-square)](https://ci.ocamllabs.io/github/pascutto/cachecache)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/pascutto/pascutto?style=flat-square)](https://github.com/pascutto/cachecache/releases/latest)
[![documentation](https://img.shields.io/badge/documentation-not_published-red?style=flat-square)](https://pascutto.github.io/cachecache)

:warning: **Disclamer:**: this library is still at preliminary stage, and not
ready for public use. Interfaces and implementations are unstable.

## About

CacheCache aims at providing an efficient (w.r.t. CPU usage, memory usage and
allocations) caching library for OCaml. It currently implements the following
caching strategies:

- `Lru`: [Least recently
used](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)).
Least recently used items are discarded first when the cache is full.

Interfaces are annotated with formal specifications using the
[Gospel](https://ocaml-gospel.github.io/gospel/) specification language.