Versions in this module Expand all Collapse all v1 v1.0.0 Mar 7, 2026 Changes in this version + type MemoryCache struct + func NewMemoryCache(maxSize int, ttl time.Duration) *MemoryCache + func (mc *MemoryCache) Clear(ctx context.Context) error + func (mc *MemoryCache) Delete(ctx context.Context, key string) error + func (mc *MemoryCache) Get(ctx context.Context, key string) (any, error) + func (mc *MemoryCache) Set(ctx context.Context, key string, value any, ttl time.Duration) error + func (mc *MemoryCache) Stats() *port.CacheStats