Versions in this module Expand all Collapse all v0 v0.0.2 Aug 2, 2024 v0.0.1 Aug 2, 2024 Changes in this version + type Cache interface + Delete func(key string) (interface{}, error) + Get func(key string) (interface{}, error) + Put func(key string, value interface{}, expire time.Duration) error + func NewCache() Cache + type IDValueCache struct + func NewValueCache() *IDValueCache + func (pc *IDValueCache) Delete(value interface{}) (interface{}, error) + func (pc *IDValueCache) Get(value interface{}) (interface{}, error) + func (pc *IDValueCache) Put(value interface{}, expire time.Duration) error + type MapCache struct + func (m *MapCache) Delete(key string) (interface{}, error) + func (m *MapCache) Get(key string) (interface{}, error) + func (m *MapCache) Put(key string, value interface{}, expire time.Duration) error