package leveldbcache
import "github.com/gregjones/httpcache/leveldbcache"
Package leveldbcache provides an implementation of httpcache.Cache that uses github.com/syndtr/goleveldb/leveldb
Index ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is an implementation of httpcache.Cache with leveldb storage
func New ¶
New returns a new Cache that will store leveldb in path
func NewWithDB ¶
NewWithDB returns a new Cache using the provided leveldb as underlying storage.
func (*Cache) Delete ¶
Delete removes the response with key from the cache
func (*Cache) Get ¶
Get returns the response corresponding to key if present
func (*Cache) Set ¶
Set saves a response to the cache as key
Source Files ¶
- Version
- v0.0.0-20190611155906-901d90724c79 (latest)
- Published
- Jun 11, 2019
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.