<div dir="ltr"><br>On Wed, Sep 21, 2016 at 9:02 PM, Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt; wrote:<br>&gt;<br>&gt; When you add the values in local cache, for each value you have to set a different key. Instead of :<br>&gt;        <br>&gt;     cache_store(&quot;local&quot;, &quot;domain&quot;, &quot;$(avp(domains)[$var(id)])&quot;);<br>&gt; do<br>&gt;     cache_store(&quot;local&quot;, &quot;domain_$var(id)&quot;, &quot;$(avp(domains)[$var(id)])&quot;);<br>&gt;<br>&gt; By doing that, you add one key for each domain value.<br>&gt;<br>&gt; Then you can iterate and fetch from cache the domain_$var(id) until nothing is returned anymore.<br>&gt;<br><br><div>Ah, yes, that should work, thanks, Bogdan.<br><br>Regards,<div><br>xiaofeng<div><br><div>_______________________________________________<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">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div></div></div></div></div>