memo v1.0.2 Memo.Behaviour behaviour

Define cache behaviour.

Link to this section Summary

Callbacks

Get value by key from cache

Set value with key and ttl to cache

Link to this section Callbacks

Get value by key from cache.

Link to this callback set(any, any, non_neg_integer)
set(any(), any(), non_neg_integer()) :: Result.t(String.t(), any())

Set value with key and ttl to cache.