Versions in this module Expand all Collapse all v1 v1.1.0 Nov 3, 2025 v1.0.0 Oct 3, 2025 Changes in this version + func GenerateKey(method, url string, headers map[string]string) string + type Cache struct + func New(config *Config) *Cache + func (c *Cache) Clear() + func (c *Cache) Delete(key string) + func (c *Cache) Get(key string) (*Entry, bool) + func (c *Cache) GetStats() Stats + func (c *Cache) Set(key string, value []byte, headers map[string][]string, statusCode int, ...) error + type Config struct + MaxAge time.Duration + MaxSize int64 + func DefaultConfig() *Config + type Entry struct + AccessedAt int64 + CreatedAt int64 + ExpiresAt int64 + Headers map[string][]string + HitCount int64 + Key string + StatusCode int + Value []byte + type Stats struct + Entries int64 + HitRate float64 + MaxSize int64 + Size int64 + TotalHits int64 + TotalMisses int64