Draft: feat: switch to ristretto for zip vfs caching
What does this MR do?
https://github.com/patrickmn/go-cache is no longer maintained, it doesn't support go modules and there are some bugs affecting Pages as well (https://github.com/patrickmn/go-cache/issues/48)
This MR replaces go-cache with ristretto for zip vfs caching.
It also refactors findOrCreateArchive
to reduce locking.
See https://github.com/dgraph-io/ristretto
See https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/
TODO
-
I added the Changelog
trailer (e.g.Changelog: feature
) to the commits that need to be included in the changelog -
I added unit tests or they are not required -
I added acceptance tests or they are not required -
I added documentation (or it's not required) -
I followed code review guidelines -
I followed Go Style guidelines
Edited by feistel