Memcache.Coder behaviour (memcachex v0.5.7) View Source

Defines the Memcache.Coder behaviour. A list would be passed to both encode/2 and decode/2 callbacks. This value can be specified by the user. Defaults to [] in case it is not specified.

Link to this section Summary

Callbacks

Called after the value is loaded from the server. It can return any type.

Called before the value is sent to the server. It should return iodata.

Link to this section Callbacks

Specs

decode(iodata(), options :: Keyword.t()) :: any()

Called after the value is loaded from the server. It can return any type.

Specs

encode(any(), options :: Keyword.t()) :: iodata()

Called before the value is sent to the server. It should return iodata.