Crate cachers[][src]

Cachers [WIP!]

cachers is a library for in-memory caching in Rust.

What's in it?

It currently only consists of a single CacheThough type, that internally uses a ClockEvictor for freeing memory when capacity is reached.

Eventually this will hopefully become a full set of out-of-the-box ready-to-use caching tools

Word of warning

This is all very much work in progress. Fundamentally, it's just me having fun with Rust...



A thread-safe cache that will populate entries on misses using the provided function, aka a cache-through cache. Uses interior mutability, which means you can simply share a non-mutable reference to both read & insert/update entries to the cache.