<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
Currently, only STRING and INTEGER data types are supported - no
NULL support in the cachedb raw interface.<br>
<br>
Please open a GITHUB issue for this and will fix it as soon as
possible.<br>
<br>
Best Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<div class="moz-cite-prefix">On 28.05.2015 16:21, Jayesh Nambiar
wrote:<br>
</div>
<blockquote
cite="mid:CANAYoztwmTq-=+Xf0f7MYgeadt_v42=99Pz_+SQhZq3_AW-bQA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div>I'm using cache_raw queries to get data from redis and I
have a problem with accessing nil values that gets returned
from it.</div>
<div>For eg I do the following:</div>
<div>cache_raw_query("redis:myRedis HMGET one two three",
"$avp(result)");</div>
<div><br>
</div>
<div>Here the value of one is abc, two is not present in redis
and three is xyz. Now if I access the values, I ideally expect
it to be the following:</div>
<div>$(avp(result)[0]) = xyz, $(avp(result)[1]) = <null>
and $(avp(result)[2]) = abc.</div>
<div>But since key two is not present in redis for whatever
reasons, the result I get back is:</div>
<div>$(avp(result)[0]) = xyz</div>
<div>$(avp(result)[1]) = abc</div>
<div>$(avp(result)[2]) = <null></div>
<div><br>
</div>
<div>This actually makes my value matching go for a toss. Is
there a better solution to access the array that is returned
back from redis or at least store the value as NULL in that
array element of avp. Any help is greatly appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>- Jayesh</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>