Flippant v1.0.0 Flippant.Serializer behaviour View Source
Rules may be stored with arbitrary values. For some storage environments, like Redis, the values must be serialized to and from a binary format.
By default all load and dump operations use Erlang’s binary to term conversion. This isn’t especially portable, or readable, so it can be overridden within your app’s configuration.
Examples
Application.put_env(:flippant, serializer: MySerializer)
Link to this section Summary
Functions
Delegates loading a value with the configured serializer
Delegates dumping a value to the configured serializer
Get the currently configured serializer module. Defaults to Term storage
Link to this section Functions
Delegates loading a value with the configured serializer.
Delegates dumping a value to the configured serializer.
Get the currently configured serializer module. Defaults to Term storage.