function get30DaysScore($brokerid) { $key = 'get_30days_score_brokerid_' . $brokerid; APF::get_instance()->benchmark_begin(__CLASS__ . $key); $memcache = APF_Cache_Factory::get_instance()->get_memcache(); $value = $memcache->get($key); if (!$value) { $value = parent::get30DaysScore($brokerid); $memcache->add($key, $value, 0, 21600); //6小时 } APF::get_instance()->benchmark_end(__CLASS__ . $key); return $value; }