$guangzhou_tmp_key = ‘guangzhouchezhan‘;
$guangzhou_arr = $memcache->get($guangzhou_tmp_key);
if(!$guangzhou_arr){
$guangzhou_data = curl(‘http://hezuo.xcar.com.cn/chezhan/2014gz_interface.php‘);
$guangzhou_arr=unserialize($guangzhou_data);
$memcache->set($guangzhou_tmp_key,$guangzhou_arr,MEMCACHE_COMPRESSED,3600*6);
}
时间: 2024-10-20 16:30:30