Project
Cachita
Cachita is a Go cache library that puts memory, file, Redis and SQL stores behind one interface, so an application can change its cache backend without changing its code.
- Backends: in-memory, file, Redis and SQL, all with the same
Put,Get,Exists,IncrandInvalidatecalls. - Types: values are read back into the caller’s own type, with no manual type assertion.
- File cache: MessagePack binary serialisation, with an in-memory index that avoids unneeded disk reads.
- Tags: cache keys can be tagged and then invalidated together by tag.
- Quality: examples, tests and benchmarks for every backend, run on GitHub Actions. MIT licence.
It is the cache layer of Skeleton.
- Source: github.com/gadelkareem/cachita
- API documentation: pkg.go.dev/github.com/gadelkareem/cachita