Documentation ¶
Overview ¶
Package proxycache registers the "proxycache" blobserver storage type, which uses a provided blobserver as a cache for a second origin blobserver.
The proxycache blobserver type also takes a sorted.KeyValue reference which it uses as the LRU for which old items to evict from the cache.
Example config:
"/cache/": { "handler": "storage-proxycache", "handlerArgs": { "origin": "", "cache": "", "meta": {}, "maxCacheBytes": 536870912 } },
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(maxBytes int64, cache, origin blobserver.Storage) blobserver.Storage
Types ¶
type CacheHasExtraError ¶
func (CacheHasExtraError) Error ¶
func (e CacheHasExtraError) Error() string
type CacheHasWrongSizeError ¶
func (CacheHasWrongSizeError) Error ¶
func (e CacheHasWrongSizeError) Error() string
Click to show internal directories.
Click to hide internal directories.