This PR migrates interval/0 in Cachex.Warmer to :interval in warmer(). This simplifies the module behaviour, and is more Elixir-y. Hardcoding the interval in the module itself didn't really make sense.
This also makes the interval completely optional, so you can choose to manually warm instead. This makes warming far more flexible for use cases we haven't thought about.
This PR migrates
interval/0
inCachex.Warmer
to:interval
inwarmer()
. This simplifies the module behaviour, and is more Elixir-y. Hardcoding the interval in the module itself didn't really make sense.This also makes the interval completely optional, so you can choose to manually warm instead. This makes warming far more flexible for use cases we haven't thought about.