Skip to content

Draft: feat: switch to ristretto for zip vfs caching

feistel requested to merge feistel/gitlab-pages:feat/ristretto into master

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

Edited by feistel

Merge request reports