package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Aug 1, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
boltdbcache
Package boltdbcache provides a file system based cache backend for Greg Jones' httpcache
using coreos/bbolt
.
Documentation
¶
Cache is an implementation of httpcache.Cache that uses a bolt database.
New returns a new Cache that uses a bolt database at the given path.
NewWithDB returns a new Cache using the provided (and opened) bolt database.
Close closes the underlying boltdb database.
Delete removes the response with the given key from the cache.
Get retrieves the response corresponding to the given key if present.
Set stores a response to the cache at the given key.
An Option is a function that applies an option to a Cache.
WithBucketName is a functional option that sets the bucket name to use for
this cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.