Versions in this module Expand all Collapse all v0 v0.0.1 May 18, 2026 Changes in this version + type EvictionPolicy int + const ImmediatelyEvict + const NeverEvict + type Function func(ctx context.Context, arg any) any + type Promise struct + func NewPromise(debug string, function Function) *Promise + func (p *Promise) Cached() any + func (p *Promise) Get(ctx context.Context, arg any) (any, error) + type RefCounted interface + Acquire func() func() + type Store struct + func NewStore(policy EvictionPolicy) *Store + func (s *Store) DebugOnlyIterate(f func(k, v any)) + func (s *Store) Stats() map[reflect.Type]int + func (store *Store) Promise(key any, function Function) (*Promise, func())