<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>