package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Functions

NewCache constructs a new Cache that uses the given source.
NewCircularPool creates a fixed-size rotating object pool.
NewValue creates a dynamic implementation of Value based on the period parameter.

# Constants

CachePeriodForever is a special value that means a cache never expires.
CachePeriodForeverValue is the string value indicating that a cache never expires.
CachePeriodNever is a special value indicating something must never be cached.
CachePeriodNeverValue is the string value indicating that something should not be cached.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Cache is an on-demand cache for an arbitrary value.

# Interfaces

CircularPool represents a fixed-size pool whose objects rotate in and out.
Pool represents an object pool.
Value fronts an arbitrary object resulting from some nontrivial operation.

# Type aliases

CachePeriod is a custom type which describes the amount of time before a cached value is considered to have been expired.
ValueFunc is a function type that implements Value.