Versions in this module Expand all Collapse all v1 v1.0.0 Dec 7, 2024 Changes in this version + type Cache struct + func New() *Cache + func (c *Cache) Del(key string) bool + func (c *Cache) Get(key string) any + func (c *Cache) Set(key string, value any, duration time.Duration) bool + func (c *Cache) StartCleanup() + func (c *Cache) TTL(key string) time.Duration + type CacheItem struct + Expiration int64 + Value any + func (item *CacheItem) Expired() bool