Caches in Rust

In this post I’ll describe how to implement caches in Rust.
It is inspired by two recent refactors I landed at nearcore (nearcore#6549, nearcore#6811).
Based on that experience, it seems that implementing caches wrong is rather easy, and making a mistake … Read more

Similar