package
Version:
v0.0.0-...-eb201ba
Opens a new window with list of versions in this module.
Published: Jan 13, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Manager manages the cache
func NewCache(maxSize int, loader func(key interface{}) (interface{}, error)) *Manager
NewCache Creates a new cache
func (c *Manager) GetOrLoad(key interface{}) (interface{}, error)
GetOrLoad load the value
Source Files
¶
Click to show internal directories.
Click to hide internal directories.