Versions in this module Expand all Collapse all v1 v1.13.2 Mar 8, 2019 v1.13.1 Mar 8, 2019 Changes in this version + var ErrMissing = errors.New("missing cache entry") + type Cache struct + Name string + func New(cfg config.Cache) (*Cache, error) + func (c *Cache) Close() + func (c *Cache) NewResponseWriter(rw http.ResponseWriter, key *Key) (*ResponseWriter, error) + func (c *Cache) Stats() Stats + func (c *Cache) WriteTo(rw http.ResponseWriter, key *Key) error + type Key struct + AcceptEncoding string + Compress string + Database string + DefaultFormat string + EnableHTTPCompression string + Extremes string + MaxResultRows string + Namespace string + Query []byte + ResultOverflowMode string + UserParamsHash uint32 + func (k *Key) String() string + type ResponseWriter struct + func (rw *ResponseWriter) CloseNotify() <-chan bool + func (rw *ResponseWriter) Commit() error + func (rw *ResponseWriter) Rollback() error + func (rw *ResponseWriter) StatusCode() int + func (rw *ResponseWriter) Write(b []byte) (int, error) + func (rw *ResponseWriter) WriteHeader(statusCode int) + type Stats struct + Items uint64 + Size uint64