Asynchronous Function Call in PHP

19 views
Skip to first unread message

Tuấn Dương Trần

unread,
Aug 19, 2014, 9:48:55 AM8/19/14
to yii-...@googlegroups.com
Hi every body, 
I'm building a website using Yii2, Redis, mysql. I need to write a function marking the songs, scores are stored in Redis and mysql. Scoring function using ajax to call the controler. I want this function to run in sequence as follows: The number is stored in Redis and returns immediately, then use a background thread to save the results into mysql. How i can do? 

Thanks. 
Reply all
Reply to author
Forward
0 new messages