Documentation ¶ Index ¶ type Cache func NewCache(interval time.Duration) *Cache func (c *Cache) Add(key string, data any, expiry time.Duration) func (c *Cache) Clear() func (c *Cache) Delete(key string) func (c *Cache) Get(key string) (any, bool) func (c *Cache) Stop() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { // contains filtered or unexported fields } func NewCache ¶ func NewCache(interval time.Duration) *Cache func (*Cache) Add ¶ func (c *Cache) Add(key string, data any, expiry time.Duration) func (*Cache) Clear ¶ func (c *Cache) Clear() func (*Cache) Delete ¶ func (c *Cache) Delete(key string) func (*Cache) Get ¶ func (c *Cache) Get(key string) (any, bool) func (*Cache) Stop ¶ func (c *Cache) Stop() Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.