create_pool/2 | create new pool. |
create_pool/3 | |
create_pool/4 | |
create_pool/5 | |
create_pool/6 | |
create_pool/7 | |
delete_pool/1 | delet 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 |
create_pool(PoolName::atom(), Size::integer()) -> {ok, pid()} | {error, {already_started, pid()}}
create new pool
create_pool(PoolName::atom(), Size::integer(), Host::string()) -> {ok, pid()} | {error, {already_started, pid()}}
create_pool(PoolName::atom(), Size::integer(), Host::string(), Port::integer()) -> {ok, pid()} | {error, {already_started, pid()}}
create_pool(PoolName::atom(), Size::integer(), Host::string(), Port::integer(), Database::string()) -> {ok, pid()} | {error, {already_started, pid()}}
create_pool(PoolName::atom(), Size::integer(), Host::string(), Port::integer(), Database::string(), Password::string()) -> {ok, pid()} | {error, {already_started, pid()}}
create_pool(PoolName::atom(), Size::integer(), Host::string(), Port::integer(), Database::string(), Password::string(), ReconnectSleep::integer()) -> {ok, pid()} | {error, {already_started, pid()}}
delete_pool(PoolName::atom()) -> ok | {error, not_found}
delet pool and disconnected to Redis.
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(PoolName::atom(), Command::iolist(), Timeout::integer()) -> {ok, binary() | [binary()]} | {error, Reason::binary()}
qp(PoolName, Pipeline) -> any()
qp(PoolName::atom(), Command::iolist(), Timeout::integer()) -> {ok, binary() | [binary()]} | {error, Reason::binary()}
start() -> any()
stop() -> any()
transaction(PoolName, Fun) -> any()
Generated by EDoc