Versions in this module Expand all Collapse all v0 v0.12.0 Jun 11, 2026 v0.11.0 Jun 11, 2026 Changes in this version + func BuildKey(pattern string, params map[string]string) string + type Annotation struct + Invalidate []string + KeyPattern string + TTL time.Duration + func ParseAnnotation(line string) *Annotation + func ParseAnnotations(lines []string) *Annotation + func (a *Annotation) ToConfig() CacheConfig + type Cache interface + Delete func(ctx context.Context, key string) + Get func(ctx context.Context, key string) (any, bool) + Invalidate func(ctx context.Context, pattern string) + Set func(ctx context.Context, key string, value any, ttl time.Duration) + type CacheConfig struct + Enabled bool + Invalidate []string + KeyPattern string + TTL time.Duration + type Entry struct + ExpiresAt time.Time + Invalidate []string + Value any