reqmemo

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL