Versions in this module Expand all Collapse all v0 v0.1.1 Oct 9, 2026 Changes in this version + const EndpointEnterprise + const EndpointStandard + const URLTTL + func KeyForFile(path string, endpoint string, params map[string]string) (string, error) + func KeyForInput(in media.Input, endpoint string, params map[string]string) (string, error) + func KeyForURL(u string, endpoint string, params map[string]string) string + type Cache struct + func Open() (*Cache, error) + func OpenAt(path string) (*Cache, error) + func (c *Cache) Clear() error + func (c *Cache) Close() error + func (c *Cache) Count() (int, error) + func (c *Cache) Get(key string) (json.RawMessage, bool) + func (c *Cache) Put(key string, isURL bool, result json.RawMessage) error + func (c *Cache) PutEntry(e Entry, isURL bool) error + func (c *Cache) Recent(limit int) ([]Entry, error) + func (c *Cache) SetClock(now func() time.Time) + type Entry struct + At time.Time + Endpoint string + Key string + Result json.RawMessage + Source string