Cachex v3.1.0 Cachex.Policy behaviour View Source
Module controlling policy behaviour definitions.
This module purely exposes the behaviour and convenience macros for
creating a custom policy. It’s used internally be Cachex.Policy.LRW
and provides very little more than an interface to adhere to.
Link to this section Summary
Callbacks
Returns an optional child spec to start for this policy
Returns any hook definitions required for this policy
Returns the Supervisor strategy for this policy
Link to this section Callbacks
Link to this callback
child_spec(arg0)
View Source
child_spec(Spec.limit()) :: Supervisor.Spec.spec()
Returns an optional child spec to start for this policy.
Returns any hook definitions required for this policy.
Returns the Supervisor strategy for this policy.