Versions in this module Expand all Collapse all v0 v0.0.1 Sep 25, 2020 Changes in this version + type Getter interface + Get func(key string) ([]byte, error) + type GetterFunc func(key string) ([]byte, error) + func (f GetterFunc) Get(key string) ([]byte, error) + type Group struct + func (g *Group) Get(key string) (cachebackend.Valuer, error) + func (g *Group) Set(key string, value cachebackend.Valuer, isLocalCache bool) (newValue cachebackend.Valuer, err error) + type Hit struct + func NewHit(config *hit.Config) *Hit + func NewHitFromPath(path string) *Hit + func (h *Hit) GetGroup(name string) *Group + func (h *Hit) NewGroup(name, nodeName string, mainCache *cache.SyncCache, getter Getter) *Group + func (h *Hit) NewGroupDefault(name, nodeName string, cacheBytes int64, getter Getter) *Group