Versions in this module Expand all Collapse all v0 v0.1.2 Jun 26, 2024 Changes in this version + type Cache struct + func New(defaultExpiration, cleanupInterval time.Duration) *Cache + func (c *Cache) Add(key string, value interface{}, duration time.Duration) error + func (c *Cache) Count() int + func (c *Cache) Delete(key string) + func (c *Cache) Get(key string) (interface{}, bool) + func (c *Cache) Replace(key string, value interface{}, duration time.Duration) error + func (c *Cache) Set(key string, value interface{}, duration time.Duration)