MCPcopy
hub / github.com/caddyserver/caddy / NewUsagePool

Function NewUsagePool

usagepool.go:64–68  ·  view source on GitHub ↗

NewUsagePool returns a new usage pool that is ready to use.

()

Source from the content-addressed store, hash-verified

62
63// NewUsagePool returns a new usage pool that is ready to use.
64func NewUsagePool() *UsagePool {
65 return &UsagePool{
66 pool: make(map[any]*usagePoolVal),
67 }
68}
69
70// LoadOrNew loads the value associated with key from the pool if it
71// already exists. If the key doesn't exist, it will call construct

Callers 2

listeners.goFile · 0.85
logging.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected