package
1.2.120
Repository: https://github.com/searking/golang.git
Documentation: pkg.go.dev

# Functions

NewCachedPool Creates a pool that creates new items as needed, but will reuse previously constructed items when they are available.
NewFixedPool returns an initialized fixed pool.
NewLRU constructs an LRU of the given size.
NewTempPool Creates a pool that creates new items as needed, but will be dropped at second GC if only referenced by the pool self.
WithLock runs while holding lk.

# Constants

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

# Structs

FixedPool is a set of resident and temporary items that may be individually saved and retrieved.
No description provided by the author
LRU is like a Go map[K]V but implements a thread safe fixed size LRU cache.