All Versions
6
Latest Version
Avg Release Cycle
12 days
Latest Release
-
Changelog History
Changelog History
-
v0.0.14-beta.3 Changes
GenCache
- adding a new method:get_and_trigger_async_fetch
this method lookups the cache and returns immediately.in case there's a cache miss or stale data it enqueues a refresh task in the backgrund before returning
-
v0.0.14-beta.2 Changes
prerender periodic tasks executor optimization
-
v0.0.14-beta.1 Changes
March 03, 2018- 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
-
v0.0.12 Changes
March 03, 2018🚀 first release
-
v0.0.11
March 02, 2018 -
v0.0.10
January 27, 2018