Versions in this module Expand all Collapse all v1 v1.75.1 Aug 28, 2026 Changes in this version + type Cache struct + func New() *Cache + func (c *Cache) Clear() + func (c *Cache) Delete(key string) bool + func (c *Cache) DeletePrefix(prefix string) (deleted int) + func (c *Cache) Entries() int + func (c *Cache) EntriesWithPinCount() (pinned, unpinned int) + func (c *Cache) Get(key string, create CreateFunc) (value any, err error) + func (c *Cache) GetMaybe(key string) (value any, found bool) + func (c *Cache) Pin(key string) + func (c *Cache) Put(key string, value any) + func (c *Cache) PutErr(key string, value any, err error) + func (c *Cache) Rename(oldKey, newKey string) (value any, found bool) + func (c *Cache) SetExpireDuration(d time.Duration) *Cache + func (c *Cache) SetExpireInterval(d time.Duration) *Cache + func (c *Cache) SetFinalizer(finalize func(any)) + func (c *Cache) Unpin(key string) + type CreateFunc func(key string) (value any, ok bool, error error) v1.75.0-telegram1 Aug 28, 2026