assignment v0.2.0 Assignment.CacheBehaviour behaviour

Link to this section Summary

Link to this section Types

Link to this type cache()
cache() :: any()
Link to this type input()
input() :: any()
Link to this type key()
key() :: any()
Link to this type key_fun()
key_fun() :: (input() -> key())
Link to this type value()
value() :: any()

Link to this section Callbacks

Link to this callback cached?(cache, input)
cached?(cache(), input()) :: true | false
Link to this callback new(key_fun)
new(key_fun()) :: cache()
Link to this callback put(cache, input, value)
put(cache(), input(), value()) :: cache()
Link to this callback value(cache, input)
value(cache(), input()) :: value()