Package driver defines interfaces to be implemented by cache backends as used by the github.com/bartventer/httpcache/store package.
Implementing a Cache Backend ΒΆTo implement a custom cache backend, provide a type that implements the Conn interface.
The Driver interface is used to create a Conn from a URL.
The URL scheme determines which driver is used.
Implementations must be safe for concurrent use by multiple goroutines. Example implementations can be found in sub-packages such as store/memcache and store/fscache.
This section is empty.
ErrNotExist is returned when a cache entry does not exist.
Methods such as [Cache.Get] and [Cache.Delete] should return an error that satisfies errors.Is(err, store.ErrNotExist) if the entry is not found.
This section is empty.
Conn describes the interface implemented by types that provide a connection to a cache backend. It allows for basic operations such as getting, setting, and deleting cache entries by key.
Driver is the interface implemented by cache backends that can create a Conn from a URL. The URL scheme determines which driver is used.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4