mod hiredis throwing response error[(null)][4] on getting value
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@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@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
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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank You. Let me know if you want anything from my side. On 7 December 2016 at 23:58, Christopher Rienzo <cmrienzo@gmail.com> wrote:
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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Aqs Younas
-
Christopher Rienzo