View Source NebulexRedisAdapter.Serializer.Serializable protocol (NebulexRedisAdapter v2.4.0)

Protocol controlling how a key/value is encoded to a string and how a string is decoded into an Elixir term.

See Redis Strings.

Summary

Types

t()

All the types that implement this protocol.

Functions

Decodes data with the given opts.

Encodes data with the given opts.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

decode(data, opts \\ [])

View Source
@spec decode(binary(), [term()]) :: term()

Decodes data with the given opts.

Link to this function

encode(data, opts \\ [])

View Source
@spec encode(term(), [term()]) :: binary()

Encodes data with the given opts.