[OpenSIPS-Users] avp_db_query in memcached
    Bogdan-Andrei Iancu 
    bogdan at opensips.org
       
    Fri Sep 19 10:37:38 CEST 2014
    
    
  
Hi,
Take a look at:
http://www.opensips.org/Documentation/Tutorials-KeyValueInterface
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 17.09.2014 23:22, Satish Patel wrote:
> 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?
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140919/5cecbaec/attachment.htm>
    
    
More information about the Users
mailing list