<div dir="ltr">Hi Vlad,<div>Thanks for the lightning fast response. I&#39;ll open up the issue on GITHUB right away.</div><div><br></div><div>- Jayesh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 6:58 PM, Vlad Paiu <span dir="ltr">&lt;<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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 cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre><div><div class="h5">
    <div>On 28.05.2015 16:21, Jayesh Nambiar
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi,
        <div>I&#39;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(&quot;redis:myRedis HMGET one two three&quot;,
          &quot;$avp(result)&quot;);</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]) = &lt;null&gt;
          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]) = &lt;null&gt;</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></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>