Versions in this module Expand all Collapse all v0 v0.1.0 Jan 30, 2019 Changes in this version + var ErrNotFound = errors.New("cache: not found") + var ErrTimeout = errors.New("cache: timeout") + type BytesCache interface + Get func(k string) ([]byte, error) + Set func(k string, v []byte, expire int32) + func NewExpireCache(maxsize uint64) BytesCache + func NewMemcached(prefix string, servers ...string) BytesCache + type ExpireCache struct + func (ec ExpireCache) Get(k string) ([]byte, error) + func (ec ExpireCache) Items() int + func (ec ExpireCache) Set(k string, v []byte, expire int32) + func (ec ExpireCache) Size() uint64 + type MemcachedCache struct + func (m *MemcachedCache) Get(k string) ([]byte, error) + func (m *MemcachedCache) Set(k string, v []byte, expire int32) + func (m *MemcachedCache) Timeouts() uint64 + type NullCache struct + func (NullCache) Get(string) ([]byte, error) + func (NullCache) Set(string, []byte, int32)