$redis = new Redis(); $redis->connect("127.0.0.1", "6379"); //php客户端设置的ip及端口
$redis->lPush("GPS_LIST", data);
$redis->rPop(("GPS_LIST");
Php +Redis 做消息队列
原文:http://www.cnblogs.com/shishi-bk/p/6639820.html