Module ce_memoize

Memoization (cacheing) design pattern.

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

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

Function Details

apply/4

apply(Name::memo_name(), Module::module(), Function::function(), Args::args()) -> term()

Applies a function, memoizing (cacheing) the results.

flush/1

flush(Name::memo_name()) -> ok

Flushes the given memoization table.

start/1

start(Name::memo_name()) -> ok

Starts the memoization service.


Generated by EDoc, Feb 18 2008, 06:47:58.