package
Version:
v0.0.0-...-c4986e2
Opens a new window with list of versions in this module.
Published: Aug 18, 2018
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Func func(key string, done <-chan struct{}) (interface{}, error)
Func is the type of the function to memoize.
Memo implements simple memorization of a function.
New initialized memoizarion structure. Clients must call Close when done.
Close closes internal channel for requests.
Get calculates new result for Func or returns one
from the cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.