wooga / eredis

Erlang Redis client
MIT License
628 stars 280 forks source link

Getting wrong value for HINCRBYFLOAT #112

Open KasunEdward opened 6 years ago

KasunEdward commented 6 years ago

I'm using Erlang R15B03 (erts-5.9.3.1) and eredis-1.1.0 for a project. when I execute HINCRBYFLOAT command as below I always get <<543>> as value.

# erl -pa ebin/
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.9.3.1  (abort with ^G)
1> {ok, C} = eredis:start_link().
{ok,<0.34.0>}
2>  eredis:q(C, ["HINCRBYFLOAT", "foo", "bar", 0]).
{ok,<<"543">>}