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

Command and parser generator to retrieve a field in a hash.

Link to this section Summary

Functions

Generates the command/0 and the parser/0 to retrieve a field in a hash.

Link to this section Types

Link to this type

command()

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

key_data()

View Source
key_data() :: atom() | integer() | float() | String.t()
Link to this type

parser()

View Source
parser() :: (String.t() -> map())

Link to this section Functions

Link to this function

get(hash, key_data)

View Source
get(atom(), [key_data()] | key_data()) :: {command(), parser()}

Generates the command/0 and the parser/0 to retrieve a field in a hash.

Parameters

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

  • key_data - The key_data/0 with the values of each key defined in FluxRedis hash_storages application configuration.

Examples

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