Note: This library is under active development and most pieces haven't been tested yet. Do not use in production until a tagged release is out.
Package pagecache
provides a stable interface and helpers for caching HTTP responses.
- Stable cache interface.
- Simple and easy-to-use API.
- Multiple helpers, making implementation easier.
The pagecace
package itself only provides a cache interface and helper
functions for users who wish to implement that interface. You can either
use an implementation created by someone else or write your own.
Implementations
memorycachex
provides a thread-safe in-memory cache using the Mockingjay cache replacement policy.
If you wrote a pagecache.Cache
implementation and wish it to be linked
here, please send a patch.
To install pagecache
alone, run:
go get git.sr.ht/~jamesponddotco/pagecache-go
Anyone can help make pagecache
better. Check out the contribution
guidelines
for more information.
The following resources are available:
- Package documentation.
- Support and general discussions.
- Patches and development related questions.
- Instructions on how to prepare patches.
- Feature requests and bug reports.
Released under the MIT License.