Versions in this module Expand all Collapse all v3 v3.0.3 Jan 10, 2020 Changes in this version + var ErrEmptyRecord = errors.New("empty record created") + type Cache struct + func NewCache(opts CacheOptions) (c *Cache) + func (c *Cache) EvictAll() + func (c *Cache) NewFrontend(opts FrontendOptions) *Frontend + type CacheOptions struct + LRULimit time.Duration + MemoryLimit uint + type Frontend struct + func (f *Frontend) Evict(k Key) + func (f *Frontend) EvictAll() + func (f *Frontend) EvictByFunc(fn func(Key) (bool, error)) error + func (f *Frontend) Get(k Key) (s Streamer, err error) + func (f *Frontend) WriteHTTP(k Key, w http.ResponseWriter, r *http.Request) (n int64, err error) + type FrontendOptions struct + Get Getter + Level *int + type Getter func(Key, *RecordWriter) error + type Key interface + type RecordWriter struct + func (rw *RecordWriter) Bind(f *Frontend, k Key) (Streamer, error) + func (rw *RecordWriter) BindJSON(f *Frontend, k Key, dst interface{}) (err error) + func (rw *RecordWriter) Include(f *Frontend, k Key) (err error) + func (rw *RecordWriter) ReadFrom(r io.Reader) (n int64, err error) + func (rw *RecordWriter) Write(p []byte) (n int, err error) + type Streamer interface + DecodeJSON func(dst interface{}) error + ETag func() string + NewReader func() io.Reader + SHA1 func() [sha1.Size]byte + Unzip func() io.ReadCloser Other modules containing this package github.com/bakape/recache github.com/bakape/recache/v2 github.com/bakape/recache/v4 github.com/bakape/recache/v5 github.com/bakape/recache/v6