Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalCache ¶
type LocalCache struct {
// contains filtered or unexported fields
}
func NewLocalCache ¶
func NewLocalCache(interval time.Duration, opts ...LocalCacheOption) *LocalCache
func (*LocalCache) Close ¶
func (c *LocalCache) Close() error
type LocalCacheOption ¶
type LocalCacheOption func(cache *LocalCache)
func LocalCacheWithEvictedCallback ¶
func LocalCacheWithEvictedCallback(fn func(k string, v any)) LocalCacheOption
Click to show internal directories.
Click to hide internal directories.