When functions are executed using ce_memoize:apply/4
,
their results are saved for future reference (subsequent calls to
apply/4
) in an ets table. This can be useful for values
which are slow to initially calculate and rarely change thereafter,
and where speed is desired for every access.
Exported Functions | |
---|---|
apply/4 | Applies a function, memoizing (cacheing) the results. |
flush/1 | Flushes the given memoization table. |
start/1 | Starts the memoization service. |
apply(memo_name(), module(), function(), args()) -> term()
Applies a function, memoizing (cacheing) the results.
flush(memo_name()) -> ok
Flushes the given memoization table.
start(memo_name()) -> ok
Starts the memoization service.