ttl_cache v0.1.0 TTLCache.Expiration behaviour

Link to this section Summary

Link to this section Callbacks

Link to this callback expire?(state, {})
expire?(state :: map(), {key :: term(), metadata :: term()}) :: true | false
Link to this callback init(state)
init(state :: map()) :: state :: map()
Link to this callback on_delete(state, key)
on_delete(state :: map(), key :: term()) :: state :: map()
Link to this callback on_read(state, key)
on_read(state :: map(), key :: term()) :: state :: map()
Link to this callback on_write(state, {})
on_write(state :: map(), {key :: term(), value :: term()}) :: state :: map()