Versions in this module Expand all Collapse all v1 v1.0.0 Feb 26, 2020 Changes in this version + const Forever + type Cache struct + CleanupInterval time.Duration + DefaultTimeout time.Duration + Indexer CacheIndexer + func (cache *Cache) Cleanup() + func (cache *Cache) Filter(fn CacheFilter) map[string]interface{} + func (cache *Cache) Get(name string) interface{} + func (cache *Cache) GetAndRenew(name string) interface{} + func (cache *Cache) GetAndRenewByIndex(index string, value string) (string, interface{}) + func (cache *Cache) GetByIndex(index string, value string) (string, interface{}) + func (cache *Cache) Index(name string, index string, value string) + func (cache *Cache) Set(name string, value interface{}) + func (cache *Cache) SetWithTimeout(name string, value interface{}, timeout time.Duration) + type CacheFilter func(string, interface{}) bool + var All CacheFilter = func(string, interface{}) bool { ... } + type CacheIndexer func(string, interface{}) map[string]string