Versions in this module Expand all Collapse all v1 v1.1.4 May 27, 2022 v1.1.3 Dec 15, 2021 Changes in this version + type Cache struct + func NewCache(expire time.Duration, opts ...CacheOption) (*Cache, error) + func (c *Cache) Del(key string) + func (c *Cache) Get(key string) (interface{}, bool) + func (c *Cache) Set(key string, value interface{}) + func (c *Cache) Take(key string, fetch func() (interface{}, error)) (interface{}, error) + type CacheOption func(cache *Cache) + func WithLimit(limit int) CacheOption + func WithName(name string) CacheOption