Documentation ¶ Overview ¶ Package reqmemo retains the shared request-memo API. Host readers and protocol adapters use the same context key and bounded memo instance. Index ¶ func Active(ctx context.Context) bool func Do[T any](ctx context.Context, key string, load func() (T, error)) (T, error) func Forget(ctx context.Context, key string) func ForgetPrefix(ctx context.Context, prefix string) func With(ctx context.Context) context.Context Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Active ¶ added in v0.3.3 func Active(ctx context.Context) bool func Do ¶ func Do[T any](ctx context.Context, key string, load func() (T, error)) (T, error) func Forget ¶ func Forget(ctx context.Context, key string) func ForgetPrefix ¶ func ForgetPrefix(ctx context.Context, prefix string) func With ¶ func With(ctx context.Context) context.Context Types ¶ This section is empty. Source Files ¶ View all Source files reqmemo.go Click to show internal directories. Click to hide internal directories.