Phoenix.React.Cache (Phoenix.React v0.5.2)
View SourceCache 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.
Remove cached value
Get a cached value
Set a cached value
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec delete_cache( Phoenix.React.component(), Phoenix.React.props(), :static_markup | :string ) :: true
Remove cached value
@spec get(Phoenix.React.component(), Phoenix.React.props(), :static_markup | :string) :: binary() | nil
Get a cached value
@spec put( Phoenix.React.component(), Phoenix.React.props(), :static_markup | :string, binary(), [ {:ttl, integer()} ] ) :: true
Set a cached value