httpcache

module
v0.0.0-...-5a6ae9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2020 License: MIT

README

httpcache

Build Status GoDoc

Package httpcache provides a http.RoundTripper implementation that works as a mostly RFC 7234 compliant cache for http responses.

It is only suitable for use as a 'private' cache (i.e. for a web-browser or an API-client and not for a shared proxy).

This project isn't actively maintained; it works for what I, and seemingly others, want to do with it, and I consider it "done". That said, if you find any issues, please open a Pull Request and I will try to review it. Any changes now that change the public API won't be considered.

Cache Backends

If you implement any other backend and wish it to be linked here, please send a PR editing this file.

License

Directories

Path Synopsis
backend
azurestoragecache
Package azurestoragecache provides an implementation of httpcache.Cache that stores and retrieves data using Azure Storage.
Package azurestoragecache provides an implementation of httpcache.Cache that stores and retrieves data using Azure Storage.
azurestoragecache/test command
Testing azurestoragecache (set, get, delete) Parameters - accountName : Azure Storage Account Name - accountKey : Azure Storage Account Key - containerName : Azure Storage Container Name /!\ must be lower-case
Testing azurestoragecache (set, get, delete) Parameters - accountName : Azure Storage Account Name - accountKey : Azure Storage Account Key - containerName : Azure Storage Container Name /!\ must be lower-case
couchcache
Package couchcache provides an implementation of httpcache.Cache that stores and retrieves data using Couchdb.
Package couchcache provides an implementation of httpcache.Cache that stores and retrieves data using Couchdb.
diskcache
Package diskcache provides an implementation of httpcache.Cache that uses the diskv package to supplement an in-memory map with persistent storage
Package diskcache provides an implementation of httpcache.Cache that uses the diskv package to supplement an in-memory map with persistent storage
leveldbcache
Package leveldbcache provides an implementation of httpcache.Cache that uses github.com/syndtr/goleveldb/leveldb
Package leveldbcache provides an implementation of httpcache.Cache that uses github.com/syndtr/goleveldb/leveldb
memcache
Package memcache provides an implementation of httpcache.Cache that uses gomemcache to store cached responses.
Package memcache provides an implementation of httpcache.Cache that uses gomemcache to store cached responses.
redis
Package redis provides a redis interface for http caching.
Package redis provides a redis interface for http caching.
s3cache
Package s3cache provides an implementation of httpcache.Cache that stores and retrieves data using Amazon S3.
Package s3cache provides an implementation of httpcache.Cache that stores and retrieves data using Amazon S3.
twotier
Package twotier provides a wrapper for two httpcache.Cache instances, allowing you to use both a small and fast cache for popular objects and fall back to a larger and slower cache for less popular ones.
Package twotier provides a wrapper for two httpcache.Cache instances, allowing you to use both a small and fast cache for popular objects and fall back to a larger and slower cache for less popular ones.
Package httpcache provides a http.RoundTripper implementation that works as a mostly RFC-compliant cache for http responses.
Package httpcache provides a http.RoundTripper implementation that works as a mostly RFC-compliant cache for http responses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL