[OpenSIPS-Users] List all cache local
Carlos Eduardo
kaduww at gmail.com
Tue Aug 22 19:51:39 EDT 2017
Hey Liviu,
That's exactly what I need. I'll figure out how get this values, maybe
storing the keys' name elsewhere.
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
Best regards,
2017-08-22 9:42 GMT-03:00 Liviu Chircu <liviu at opensips.org>:
> Hi Carlos,
>
> 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.
>
> 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:
>
> cache_raw_query("local", "GET foo-.*-[0-9]{2}-bar", "$avp(values)");
> cache_raw_query("local", "GET foo-.*-[0-9]{2}-bar", "$avp(values)",
> "$avp(keys)");
> cache_raw_query("local", "GETALL", "$avp(values)");
> cache_raw_query("local", "GETALL", "$avp(values)", "$avp(keys)");
> cache_raw_query("local", "GETALL foo-.*-[0-9]{2}-bar", "$avp(values)");
> cache_raw_query("local", "GETALL foo-.*-[0-9]{2}-bar", "$avp(values)",
> "$avp(keys)");
>
> Would this suffice for your use case? Any feedback is good feedback.
>
> Cheers,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 22.08.2017 00:09, Carlos Eduardo wrote:
>
> Hello everyone,
>
> Hoe can list all local cache on my script script, like is done on redis
> using KEYS *? is that possible?
>
> I'm using Opensips 1.11.
>
> Best regards
>
> --
> *Carlos E. Wagner*
> *Tecnólogo em Telecomunicações, OCP, dCAA*
>
> *Gnotel Telecom*
> *E-mail:* *kaduww at gmail.com <kaduww at gmail.com>*
> *carlos at gnotel.com.br <carlos at gnotel.com.br>*
> *Fone:* +55 48 9981-0894 <(48)%209981-0894>
> *Skype:* carlos.e.wagner
> www.gnotel.com.br
> www.blogdovoip.com
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
*Carlos E. Wagner*
*Tecnólogo em Telecomunicações, OCP, dCAA*
*E-mail:* *kaduww at gmail.com <kaduww at gmail.com>*
*Fone:* +55 48 9981-0894
*Skype:* carlos.e.wagner
www.blogdovoip.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170822/3185c619/attachment.html>
More information about the Users
mailing list