摘要:
// 读取我的好友fids$db = new DB();$mc = new Memcached();$_uid = 1; // my uid$sql = "select * from follow where followuid={$_uid}";$fbids = $db->fetchAll($sql);// 缓存了每个用户的500条feedfunction GetUserFeed($uid) { $tbl = 'userfeed_' . ($uid % 8); $sql = "select * from {$tbl} where uid={ 阅读全文