[OpenSIPS-Users] avp_db_query in memcached

Satish Patel satish.txt at gmail.com
Wed Sep 17 22:22:37 CEST 2014


I am doing following operation in opensips script and i want this
information in memcached because every single call hitting MySQL for this
information

avp_db_query("SELECT username FROM registrant WHERE
(registrar='$var(x)')","$avp(user)");
                avp_db_query("SELECT password FROM registrant WHERE
username='$avp(user)'","$avp(pass)");
                avp_db_query("SELECT realm FROM registrant WHERE
username='$avp(user)'","$avp(realm)");


I know you can use cache_store() function to store in cache but i don't
know what would be the syntax, it is possible or not?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140917/683e1f05/attachment.htm>


More information about the Users mailing list