Versions in this module Expand all Collapse all v0 v0.2.0 Mar 29, 2021 Changes in this version type Map + func (cmap *Map) InitMap(list *MapItem) v0.1.0 Mar 18, 2021 Changes in this version + type Map struct + func NewMap(list *MapItem) *Map + func (cache *Map) Delete(key string) + func (cache *Map) Expire(fn func(list, item *MapItem) bool) + func (cache *Map) Get(key string) (*MapItem, bool) + func (cache *Map) Items() map[string]*MapItem + func (cache *Map) Set(key string, newitem *MapItem, expirable bool) + type MapItem struct + Value interface{} + func (item *MapItem) Empty() + func (item *MapItem) InsertHead(list *MapItem) + func (item *MapItem) InsertTail(list *MapItem) + func (item *MapItem) IsEmpty() bool + func (item *MapItem) Remove() + func (list *MapItem) Expire(fn func(list, item *MapItem) bool) + func (list *MapItem) Iterate(fn func(list, item *MapItem) bool)