View Source Phoenix.React.Cache (Phoenix.React v0.1.0)

A simple ETS based cache for expensive function calls.

Summary

Functions

Returns a specification to start this module under a supervisor.

Remove cached value

Retrieve a cached value or apply the given function caching and returning the result.

Callback implementation for GenServer.init/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

delete_cache(mod, fun, args)

Remove cached value

ensure_started()

get(mod, fun, args, opts \\ [])

Retrieve a cached value or apply the given function caching and returning the result.

init(_)

Callback implementation for GenServer.init/1.

start_link(_)