Cachex v3.1.0 Cachex.Services.Incubator View Source

Parent module for all warmer definitions for a cache.

The Incubator will control the supervision tree for all warmers that are associated with a cache. This is very minimal supervision, with no linking back except via the Supervisor access functions.

Link to this section Summary

Functions

Starts a new incubation service for a cache

Link to this section Functions

Link to this function start_link(cache) View Source
start_link(Spec.cache()) :: Supervisor.on_start()

Starts a new incubation service for a cache.

This will start a Supervisor to hold all warmer processes as defined in the provided cache record. If no warmers are attached in the cache record, this will skip creation to avoid unnecessary processes running.