Open maurolacy opened 3 years ago
List of "popular" (>1000 downloads) cache crates (in decreasing order of popularity):
Also interesting / relevant:
Documenting this list for when we decide to do this task.
Another viable caching algorithm would probably be an implementation of the SIEVE algorithm, a refinement of CLOCK IIRC: https://cachemon.github.io/SIEVE-website/
Currently used LRU is probably not the best choice. For a blockchain, a LFU or some time-aware variant like LRFU (or the next few on the list) could be more appropriate.
As it is much easier to game LRU and flush popular items out of the cache
I don't know a way to simulate it both for efficiency in normal use and stability in face of byzantine actors, but a thought experiment over a few algorithms and searching for ones with good rust implementations should be a good start.