<div dir="ltr">Hey Liviu,<div><br></div><div>That's exactly what I need. I'll figure out how get this values, maybe storing the keys' name elsewhere.</div><div><br></div><div>Thanks so much for your atention. That would be a good feature to the local_cache module. The option which adds the keys is even better :D</div><div><br></div><div>Best regards,</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-22 9:42 GMT-03:00 Liviu Chircu <span dir="ltr"><<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p><tt>Hi Carlos,</tt></p>
<p><tt>Unfortunately, this is not currently possible - the only
NoSQL backend that supports this is MongoDB, with its "find()"
raw query. Redis is close, but it can only fetch multiple values
of the same key, which is not what we want.</tt></p>
<p><tt>We should definitely add this feature to the 2.4 roadmap,
especially since the implementation seems straightforward.
cachedb_local could be extended with a minimalistic raw query
syntax to allow this. We could even add an optional regexp key
matching, for example:<br>
</tt></p>
<p><tt> cache_raw_query("local", "GET foo-.*-[0-9]{2}-bar",
"$avp(values)");<br>
cache_raw_query("local", "GET foo-.*-[0-9]{2}-bar",
"$avp(values)", "$avp(keys)");</tt><br>
<tt><tt> cache_raw_query("local", "GETALL", "$avp(values)");</tt></tt><br>
<tt><tt><tt> cache_raw_query("local", "GETALL", "$avp(values)",
"$avp(keys)");</tt></tt><br>
cache_raw_query("local", "GETALL foo-.*-[0-9]{2}-bar",
"$avp(values)");<br>
cache_raw_query("local", "GETALL foo-.*-[0-9]{2}-bar",
"$avp(values)", "$avp(keys)");<br>
</tt></p>
<p><tt>Would this suffice for your use case? Any feedback is good
feedback.<br>
</tt></p>
<p><tt>Cheers,</tt><br>
</p>
<pre class="m_4369805946190940471moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="m_4369805946190940471moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre><div><div class="h5">
<div class="m_4369805946190940471moz-cite-prefix">On 22.08.2017 00:09, Carlos Eduardo
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hello everyone,
<div><br>
</div>
<div>Hoe can list all local cache on my script script, like is
done on redis using KEYS *? is that possible?</div>
<div><br>
</div>
<div>I'm using Opensips 1.11.</div>
<div><br>
</div>
<div>Best regards<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_4369805946190940471gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>
<div style="font-size:small"><b>Carlos E. Wagner</b></div>
<div style="font-size:small;font-family:arial"><font style="font-family:arial,sans-serif;font-size:13px"><font style="font-size:x-small;color:rgb(0,0,0)"><i>Tecnólogo
em Telecomunicações, OCP, dCAA</i></font><br>
<b style="font-family:arial;font-size:small"><font color="#000000" face="arial, sans-serif"><br>
</font></b></font></div>
<div style="font-size:small;font-family:arial"><font style="font-family:arial,sans-serif;font-size:13px"><b style="font-family:arial;font-size:small"><font color="#000000" face="arial, sans-serif">Gnotel
Telecom</font></b></font></div>
<div style="font-size:small;font-family:arial"><font style="font-family:arial,sans-serif;font-size:13px"><b style="font-family:arial;font-size:small"><font face="arial, sans-serif">E-mail:</font></b><font style="font-size:small" face="arial,
sans-serif"> <u><a href="mailto:kaduww@gmail.com" target="_blank">kaduww@gmail.com</a></u></font></font></div>
<div style="font-size:small;font-family:arial"><font style="font-family:arial,sans-serif;font-size:13px"><font style="font-size:small" face="arial,
sans-serif"> <u><a href="mailto:carlos@gnotel.com.br" target="_blank">carlos@gnotel.com.br</a></u></font></font></div>
<div style="font-size:small;font-family:arial"><font style="font-family:arial,sans-serif;font-size:13px" color="#000000"><b>Fone:</b></font><font face="arial, sans-serif"> <a href="tel:(48)%209981-0894" value="+554899810894" target="_blank">+55 48 9981-0894</a></font><br>
<font style="font-family:arial,sans-serif;font-size:13px" color="#000000"><b>Skype:</b></font><font face="arial, sans-serif"> </font><font face="arial, sans-serif">carlos.e.wagner</font></div>
<div style="font-size:small;font-family:arial"><font face="arial, sans-serif"><a href="http://www.gnotel.com.br" target="_blank">www.gnotel.com.br</a></font></div>
<div style="font-size:small;font-family:arial"><font face="arial, sans-serif"><a href="http://www.blogdovoip.com" target="_blank">www.blogdovoip.com</a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_4369805946190940471mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
Users mailing list
<a class="m_4369805946190940471moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_4369805946190940471moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small"><b>Carlos E. Wagner</b></div><div style="font-size:small;font-family:arial"><font style="font-family:arial,sans-serif;font-size:13px"><font style="font-size:x-small;color:rgb(0,0,0)"><i>Tecnólogo em Telecomunicações, OCP, dCAA</i></font><br><font size="1"><i></i></font><b style="font-family:arial;font-size:small"><font color="#000000" face="arial, sans-serif"><br></font></b></font></div><div style="font-size:small;font-family:arial"><b><font face="arial, sans-serif">E-mail:</font></b><font face="arial, sans-serif" style="font-family:arial,sans-serif"> <u><a href="mailto:kaduww@gmail.com" target="_blank">kaduww@gmail.com</a></u></font></div><div style="font-size:small;font-family:arial"><font color="#000000" style="font-family:arial,sans-serif;font-size:13px"><b>Fone:</b></font><font face="arial, sans-serif"> +55 48 9981-0894</font><br><font color="#000000" style="font-family:arial,sans-serif;font-size:13px"><b>Skype:</b></font><font face="arial, sans-serif"> </font><font face="arial, sans-serif">carlos.e.wagner</font></div><div style="font-size:small;font-family:arial"><font face="arial, sans-serif"><a href="http://www.blogdovoip.com" target="_blank">www.blogdovoip.com</a></font></div></div></div></div></div></div></div></div>
</div>