cachers is a library for in-memory caching in Rust.
It currently only consists of a single
CacheThough type, that internally uses a
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
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.