GenSpoxy v0.0.14-beta.2 GenSpoxy.Periodic.TasksExecutor behaviour View Source

a behaviour for running prerender tasks periodically.

when we execute a spoxy reqeust and have a cache miss returning a stale date, we may choose to return the stale data and queue a background task.

Link to this section Summary

Link to this section Callbacks

Link to this callback execute_tasks!(req_key, req_tasks) View Source
execute_tasks!(req_key :: String.t(), req_tasks :: Array) :: :ok