php yii memcache

php的yii框架的memcache的用發實例:php

<!-- lang: php -->json

$cache_key = 'ALL_GROUPS_'.$this->city_id;

$groups_data=Yii::app()->Memcache->get($cache_key); if(empty($group_data)){ //樓盤api $groups_api = str_replace('%s', $city_info['domain_name'], JConfig::item('apiConfig.groups_api').'&city_id='.$this->city_id; $json_result = UtlsFn::simpleRequest($groups_api); $result = CJSON::decode($json_result);api

if (empty($result))
	ErrorFn::show(ErrorFn::API_ERROR,null,ErrorFn::TEMPLATE_TYPE_WAP);
$groups_data=$result;
Yii::app()->Memcache->set($cache_key,$groups_data,1800);

} 項目bug: 修改bug(yes):30,31,32,34,42,51,54,39, 重點bug:47,45 不肯定bug:48(not),62(not) 無關緊要的bug:,61(not) 沒有必要bug(not):29(not),41(not),44(not), 不是bug(not),51,53,55,57,59,60,63,38 前段的bug(yes):21.22.20(數據提供者,能夠修復,需求在變)app

相關文章
相關標籤/搜索