[Freeswitch-users] mod hiredis throwing response error[(null)][4] on getting value

Christopher Rienzo cmrienzo at gmail.com
Wed Dec 7 21:58:08 MSK 2016


I can add support for the NIL reply to mod_hiredis in addition to a few
other fixes I need to push upstream.

On Wed, Dec 7, 2016 at 12:53 PM, Aqs Younas <aqsyounas at gmail.com> wrote:

> Greetings list,
> I am testing mod_hiredis to store some values in cache. I see whenever
> I try to get a value against a key which does not exist. I see errors in
> logs
>
> freeswitch at debian> hiredis_raw default get key2
> 2016-12-07 10:19:09.033417 [INFO] hiredis_profile.c:86 hiredis: recycled
> from pool[localhost, 6379]
> Unknown Command: hiredis_raw default get key2
> 2016-12-07 10:19:09.033417 [ERR] hiredis_profile.c:222 hiredis: response
> error[(null)][4]
> 2016-12-07 10:19:09.033417 [ERR] mod_hiredis.c:107 hiredis:
> profile[default] error executing [get key2] reason:[]
>
> whereas in the case of Memcache, this thing is handled  well enough.
> freeswitch at debian> memcache get key2
>
> -ERR NOT FOUND
>
> I have two questions here,
>
> 1) Is it possible to make hiredis to throw errors more sufficiently? Like
> returning null instead of throwing these errors.
> 2) Is hgetall available in hiredis?
>
> Best,
> Aqs Younas
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161207/61a20666/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list