View Source Cachex.Policy behaviour (Cachex v3.6.0)

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 any hook definitions required for this policy.

Link to this section Callbacks

@callback hooks(Spec.limit()) :: [Spec.hook()]

Returns any hook definitions required for this policy.