Module ce_memoize

Description

Memoization (cacheing) design pattern.

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.

Function Index

Exported Functions
apply/4Applies a function, memoizing (cacheing) the results.
flush/1Flushes the given memoization table.
start/1Starts the memoization service.

Exported Functions

apply/4

apply(memo_name(), module(), function(), args()) -> term()

Applies a function, memoizing (cacheing) the results.

flush/1

flush(memo_name()) -> ok

Flushes the given memoization table.

start/1

start(memo_name()) -> ok

Starts the memoization service.