[erlang-questions] erlang redis client

fenix.serega <>
Mon Mar 12 16:11:31 CET 2012


Solved. My fault. Source of problem - old version, from forked project.

erlidis_client.erl where:

        server_timeout(V) when is_number(V) -> V / 1000.

and it makes server_timeout - float, that is why [{error,<<"ERR timeout is
not an integer or out of range">>}]

just go to https://github.com/cstar/erldis for latest correct version.

Thank's to Ahmed Omar, for help.



2012/3/12 <>

> Hi
>
> I'm trying to use erlang redis client
> https://github.com/cstar/erldis/blob/master/src/erldis.erl
>
> Module (test) code is:
>
> query() ->
>     {ok, Client} = erldis:connect("localhost", 6379),
>         erlang:display(Client),
>
>     erldis:blpop(Client, "KEY1", 600).
>
> as result:
>
> test.query().
>
>
> [{error,<<"ERR timeout is not an integer or out of range">>}]
>
> What i'm doing wrong !?
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120312/d65d2b81/attachment.html>


More information about the erlang-questions mailing list