PHP's YII framework for the memcache use of hair examples:
$cache _key = ' all_groups_ '. $this->city_id;
$groups _data=yii::app ()->memcache->get ($cache _key);
if (Empty ($group _data)) {
Property 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::d Ecode ($json _ Result), 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);
}
Project BUG:
Modify Bug (yes): 30,31,32,34,42,51,54,39,
Focus bug:47,45 (not)
Indeterminate bug:48 (not), and (not)
Optional bug:,61 (not)
No need for Bug (not): + (not), + (not),
Not a bug (not), 51,53,55,57,59,60,63,38
Previous paragraph bug (yes): 21.22.20 (data provider, can be repaired, demand is changing)
PHP yii memcache