Versions in this module Expand all Collapse all v1 v1.1.0 May 22, 2026 Changes in this version + type Entry struct + CreatedAt time.Time + JobID string + Key string + Principal string + type Memory struct + func NewMemory(ttl time.Duration) *Memory + func (s *Memory) Get(ctx context.Context, principal, key string) (Entry, bool, error) + func (s *Memory) PutIfAbsent(ctx context.Context, e Entry) (Entry, bool, error) + func (s *Memory) Sweep(ctx context.Context, olderThan time.Time) (int, error) + type Store interface + Get func(ctx context.Context, principal, key string) (Entry, bool, error) + PutIfAbsent func(ctx context.Context, e Entry) (Entry, bool, error) + Sweep func(ctx context.Context, olderThan time.Time) (int, error)