Versions in this module Expand all Collapse all v0 v0.0.2 Sep 22, 2022 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 GetGroup(name string) *Group + func NewGroups(name string, cacheBytes int64, getter Getter) *Group + func (g *Group) Get(key string) ([]byte, error) + type LRU struct + CallBack func(key string, val []byte) + func NewLRU(maxByte int64, callBack func(key string, val []byte)) *LRU + func (g *LRU) Add(key string, data []byte) + func (g *LRU) Del(key string) + func (g *LRU) Get(key string) (v []byte, ok bool) + func (g *LRU) Len() int + func (g *LRU) Remove(k ...string) + type Node struct + Key string + Val []byte