memcachir v1.0.1 Memcachir.Coder behaviour
Defines the Memcachir.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 []
incase it is not specified.
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
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.