Skip to content

Commit

Permalink
Added eredis:stop/1
Browse files Browse the repository at this point in the history
  • Loading branch information
knutin committed Dec 19, 2011
1 parent 706173a commit 5a5a76c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/eredis.erl
Expand Up @@ -16,7 +16,7 @@
-define(TIMEOUT, 5000).

-export([start_link/0, start_link/1, start_link/2, start_link/3, start_link/4,
start_link/5, q/2, q/3, qp/2, qp/3]).
start_link/5, stop/1, q/2, q/3, qp/2, qp/3]).

%% Exported for testing
-export([create_multibulk/1]).
Expand Down Expand Up @@ -56,6 +56,8 @@ start_link(Args) ->
ReconnectSleep = proplists:get_value(reconnect_sleep, Args, 100),
start_link(Host, Port, Database, Password, ReconnectSleep).

stop(Client) ->
eredis_client:stop(Client).

-spec q(Client::pid(), Command::iolist()) ->
{ok, return_value()} | {error, Reason::binary() | no_connection}.
Expand Down

0 comments on commit 5a5a76c

Please sign in to comment.