Module eredis_pool

Function Index

create_pool/2create new pool.
create_pool/3
create_pool/4
create_pool/5
create_pool/6
create_pool/7
delete_pool/1delet pool and disconnected to Redis.
q/2 Executes the given command in the specified connection.
q/3
qp/2
qp/3
start/0
stop/0
transaction/2

Function Details

create_pool/2

create_pool(PoolName::atom(), Size::integer()) -> {ok, pid()} | {error, {already_started, pid()}}

create new pool

create_pool/3

create_pool(PoolName::atom(), Size::integer(), Host::string()) -> {ok, pid()} | {error, {already_started, pid()}}

create_pool/4

create_pool(PoolName::atom(), Size::integer(), Host::string(), Port::integer()) -> {ok, pid()} | {error, {already_started, pid()}}

create_pool/5

create_pool(PoolName::atom(), Size::integer(), Host::string(), Port::integer(), Database::string()) -> {ok, pid()} | {error, {already_started, pid()}}

create_pool/6

create_pool(PoolName::atom(), Size::integer(), Host::string(), Port::integer(), Database::string(), Password::string()) -> {ok, pid()} | {error, {already_started, pid()}}

create_pool/7

create_pool(PoolName::atom(), Size::integer(), Host::string(), Port::integer(), Database::string(), Password::string(), ReconnectSleep::integer()) -> {ok, pid()} | {error, {already_started, pid()}}

delete_pool/1

delete_pool(PoolName::atom()) -> ok | {error, not_found}

delet pool and disconnected to Redis.

q/2

q(PoolName::atom(), Command::iolist()) -> {ok, binary() | [binary()]} | {error, Reason::binary()}

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(PoolName::atom(), Command::iolist(), Timeout::integer()) -> {ok, binary() | [binary()]} | {error, Reason::binary()}

qp/2

qp(PoolName, Pipeline) -> any()

qp/3

qp(PoolName::atom(), Command::iolist(), Timeout::integer()) -> {ok, binary() | [binary()]} | {error, Reason::binary()}

start/0

start() -> any()

stop/0

stop() -> any()

transaction/2

transaction(PoolName, Fun) -> any()


Generated by EDoc