Module eredis

Data Types

client()

client() = pid() | atom() | {atom(), atom()} | {global, term()} | {via, atom(), term()}

Function Index

create_multibulk/1 Creates a multibulk command with all the correct size headers.
q/2 Executes the given command in the specified connection.
q/3
q_noreply/2Executes the command but does not wait for a response and ignores any errors.
qp/2 Executes the given pipeline (list of commands) in the specified connection.
qp/3
start_link/0
start_link/1 Callback for starting from poolboy.
start_link/2
start_link/3
start_link/4
start_link/5
start_link/6
stop/1

Function Details

create_multibulk/1

create_multibulk(Args::[any()]) -> Command::iolist()

Creates a multibulk command with all the correct size headers

q/2

q(Client::client(), Command::[any()]) -> {ok, return_value()} | {error, Reason::binary() | no_connection}

Executes the given command in the specified connection. The command must be a valid Redis command and may contain arbitrary data which will be converted to binaries. The returned values will always be binaries.

q/3

q(Client, Command, Timeout) -> any()

q_noreply/2

q_noreply(Client::client(), Command::[any()]) -> ok

Executes the command but does not wait for a response and ignores any errors.

See also: q/2.

qp/2

qp(Client::client(), Pipeline::pipeline()) -> [{ok, return_value()} | {error, Reason::binary()}] | {error, no_connection}

Executes the given pipeline (list of commands) in the specified connection. The commands must be valid Redis commands and may contain arbitrary data which will be converted to binaries. The values returned by each command in the pipeline are returned in a list.

qp/3

qp(Client, Pipeline, Timeout) -> any()

start_link/0

start_link() -> any()

start_link/1

start_link(Args::server_args()) -> {ok, Pid::pid()} | {error, Reason::term()}

Callback for starting from poolboy

start_link/2

start_link(Host, Port) -> any()

start_link/3

start_link(Host, Port, Database) -> any()

start_link/4

start_link(Host, Port, Database, Password) -> any()

start_link/5

start_link(Host, Port, Database, Password, ReconnectSleep) -> any()

start_link/6

start_link(Host, Port, Database, Password, ReconnectSleep, ConnectTimeout) -> any()

stop/1

stop(Client) -> any()


Generated by EDoc, Mar 30 2016, 14:31:12.