This project is no longer maintained by Turbine Labs, which has shut down.
The cache project provides a simple Cache interface, with several concrete implementations.
- Go 1.10.3 or later (previous versions may work, but we don't build or test against them)
The cache project depends on our nonstdlib package; the tests depend on our test package. It should always be safe to use HEAD of all master branches of Turbine Labs open source projects together, or to vendor them with the same git tag.
A gomock-based MockCache is provided.
Additionally, we vendor github.com/hashicorp/golang-lru. This should be considered an opaque implementation detail, see Vendoring for more discussion.
go get -u github.com/turbinelabs/cache/...
mkdir -p $GOPATH/src/turbinelabs
git clone https://github.com/turbinelabs/cache.git > $GOPATH/src/turbinelabs/cache
go test github.com/turbinelabs/cache/...
Please see Versioning of Turbine Labs Open Source Projects.
Patches accepted! Please see Contributing to Turbine Labs Open Source Projects.
All Turbine Labs open-sourced projects are released with a Contributor Code of Conduct. By participating in our projects you agree to abide by its terms, which will be carefully enforced.