Versions in this module Expand all Collapse all v1 v1.0.5 Dec 10, 2019 Changes in this version type Cacher + func Instance() Cacher v1.0.4 Oct 15, 2019 Changes in this version + func Clear() error + func Delete(key string) error + func DeleteMultiple(keys ...string) error + func Get(key string) ([]byte, error) + func GetD(key string, v []byte) []byte + func GetMultiple(keys ...string) (map[string][]byte, error) + func Has(key string) (bool, error) + func Register(c Cacher) + func Set(key string, val []byte) error + func SetMultiple(values map[string][]byte) error + func SetWithTTL(key string, val []byte, ttl int64) error + type Cacher interface + Clear func() error + Delete func(key string) error + DeleteMultiple func(keys ...string) error + Get func(key string) ([]byte, error) + GetD func(key string, v []byte) []byte + GetMultiple func(keys ...string) (map[string][]byte, error) + Has func(key string) (bool, error) + Set func(key string, val []byte) error + SetMultiple func(values map[string][]byte) error + SetWithTTL func(key string, val []byte, ttl int64) error