Flux Redis v0.0.2 FluxRedis.HashManager.Commands.SetMany View Source

Command and parser generator to add or update one or more fields in a hash.

Link to this section Summary

Functions

Generates the command/0 and the parser/0 to add or update one or more fields in a hash.

Link to this section Types

Link to this type

command()

View Source
command() :: list()
Link to this type

parser()

View Source
parser() :: (integer() -> integer())

Link to this section Functions

Link to this function

set_many!(hash, data_list)

View Source
set_many!(atom(), [map()]) :: {command(), parser()}

Generates the command/0 and the parser/0 to add or update one or more fields in a hash.

Raises FluxRedis.Error.t/0 if failed to generate command/0.

Parameters

  • hash - The atom/0 defined in FluxRedis hash_storages application configuration.

  • data_list - A list/1 of map/0. Each map Must have at least all keys defined in FluxRedis hash_storages application configuration.

Examples

For practical examples, please check FluxRedis.HashManager.set_many/3.