Versions in this module Expand all Collapse all v1 v1.0.2 Nov 28, 2021 v1.0.1 Nov 28, 2021 Changes in this version + type ExpireFunc func(interface{}) + type NewFunc func() (interface{}, error) + type Pool struct + ExpireFunc func(interface{}) + NewFunc func() (interface{}, error) + TTL time.Duration + func New(ttl time.Duration, newFunc NewFunc, expireFunc ...ExpireFunc) *Pool + func (p *Pool) Clear() + func (p *Pool) Close() + func (p *Pool) Get() (interface{}, error) + func (p *Pool) Put(value interface{}) error + func (p *Pool) Size() int