View Source NebulexRedisAdapter.Serializer behaviour (NebulexRedisAdapter v2.3.0)

A Serializer encodes keys and values sent to Redis, and decodes keys and values in the command output.

See Redis Strings.

Link to this section Summary

Callbacks

Decodes key with the given opts.

Decodes value with the given opts.

Encodes key with the given opts.

Encodes value with the given opts.

Link to this section Callbacks

@callback decode_key(key :: binary(), opts :: [term()]) :: term()

Decodes key with the given opts.

Link to this callback

decode_value(value, opts)

View Source
@callback decode_value(value :: binary(), opts :: [term()]) :: term()

Decodes value with the given opts.

@callback encode_key(key :: term(), opts :: [term()]) :: iodata()

Encodes key with the given opts.

Link to this callback

encode_value(value, opts)

View Source
@callback encode_value(value :: term(), opts :: [term()]) :: iodata()

Encodes value with the given opts.