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 <[email protected]>: > 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:* *[email protected] <[email protected]>* > *[email protected] <[email protected]>* > *Fone:* +55 48 9981-0894 <(48)%209981-0894> > *Skype:* carlos.e.wagner > www.gnotel.com.br > www.blogdovoip.com > > > _______________________________________________ > Users mailing > [email protected]http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- *Carlos E. Wagner* *Tecnólogo em Telecomunicações, OCP, dCAA* *E-mail:* *[email protected] <[email protected]>* *Fone:* +55 48 9981-0894 *Skype:* carlos.e.wagner www.blogdovoip.com
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
