View Source Cachex.Policy.LRW.Scheduled (Cachex v3.6.0)

Scheduled least recently written eviction policy for Cachex.

This module implements a scheduled LRW eviction policy for Cachex, using a basic timer to trigger bound enforcement in a repeatable way. This has the same bound accuracy as Cachex.Policy.LRW.Evented, but has potential for some delay. The main advantage of this implementation is a far lower memory cost due to not using hook messages.

Link to this section Summary

Functions

Returns the actions this policy should listen on.

Returns the provisions this policy requires.

Link to this section Functions

@spec actions() :: [atom()]

Returns the actions this policy should listen on.

@spec provisions() :: [atom()]

Returns the provisions this policy requires.