Versions in this module Expand all Collapse all v0 v0.0.3 Mar 10, 2022 v0.0.2 Jun 14, 2021 Changes in this version type IItem + Key func() string v0.0.1 Apr 22, 2021 Changes in this version + func CheckSign(b, sign []byte) bool + func Encode(item IItem) ([]byte, error) + type IItem interface + Decode func([]byte) error + Encode func() ([]byte, error) + ID func() int + Sign func() []byte + type IKeyCache interface + Count func() int + Del func(item IItem) + Exists func(item IItem) bool + Get func(item IItem) error + Set func(item IItem) error + func New(maxSize ...int) IKeyCache + type KeyCache struct + func (cache *KeyCache) Count() int + func (cache *KeyCache) Del(item IItem) + func (cache *KeyCache) Exists(item IItem) bool + func (cache *KeyCache) Get(item IItem) error + func (cache *KeyCache) Set(item IItem) error