Versions in this module Expand all Collapse all v1 v1.8.1 Jul 29, 2022 v1.8.0 Jul 29, 2022 Changes in this version + type Cache struct + func New() (cache *Cache[TYPE]) + func (cache *Cache[TYPE]) Add(value *TYPE) + func (cache *Cache[TYPE]) Delete(value *TYPE) + func (cache *Cache[TYPE]) DeleteBy(keyName string, keyValue any) + func (cache *Cache[TYPE]) FindBy(keyName string, keyValue any) (value *TYPE, ok bool) + func (cache *Cache[TYPE]) FindsOf(indexName string, indexValue any) (values []*TYPE) + func (cache *Cache[TYPE]) Reset(keyName string, keyValue any, fun func(value *TYPE)) + func (cache *Cache[TYPE]) RollFor(reason string) (value *TYPE, ok bool) + type Index struct + type Key struct