Phoenix.React.Cache (Phoenix.React v0.2.0)

View Source

Cache for React Component rendering

Cache key is a tuple of component, props and static flag

Remove expired cache every 60 seconds

Summary

Functions

Returns a specification to start this module under a supervisor.

Get a cached value

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

delete_cache(component, props, mod)

Remove cached value

get(component, props, mod)

Get a cached value

put(component, props, mod, result, opt \\ [])

Set a cached value

start_link(_)