gen_spoxy v0.0.14-beta.1 Release Notes
Release Date: 2018-03-03 // about 6 years ago-
- 0️⃣ renaming
Constants
toDefaults
- 0️⃣ changing the defaults to suit most applications out-of-the-box
GenSpoxy.Cache
andGenSpoxy.Prerender
expect configuations override underconfig
for example:
defmodule SamplePrerender do use GenSpoxy.Prerender, config: [prerender_timeout: 3000] @impl true def do_req(req) do # slow calculation of `req` end @impl true def calc_req_key(req) do Enum.join(req, "-") end end defmodule SampleCache do use GenSpoxy.Cache, store_module: Ets, prerender_module: SamplePrerender, config: [periodic_sampling_interval: 100] end
GenSpoxy.Prerender
settings are:prerender_timeout
(defaults toDefaults.prerender_timeout()
)prerender_total_partitions
(defaults toDefaults.total_partitions()
)prerender_sampling_interval
(defaults toDefaults.prerender_sampling_interval()
)
GenSpoxy.Cache
settings for its underlyingTasksExecutor
are:periodic_sampling_interval
(defaults toDefaults.periodic_sampling_interval()
)periodic_total_partitions (defaults to
Defaults.total_partitions()`)
- 0️⃣ renaming