Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memoise ¶
type Memoise interface {
// Check returns the memoised value for the given key if available.
// Otherwise it calls the provided callback to compute the value,
// stores the result, and returns it.
// Thread-safe.
Check(string, CallbackFn) (any, error)
// Clear the contents of the memoise map.
Reset()
}
Memoisation type.
Click to show internal directories.
Click to hide internal directories.