/** * 获取经纪人合同 */ function getBrokerContact($brokerId) { $functionName = "getBrokerContact"; $key = $functionName . "_" . $brokerId; APF::get_instance()->benchmark_begin(__CLASS__ . $key); $memcache = APF_Cache_Factory::get_instance()->get_memcache(); $value = $memcache->get($key); if (!$value) { $time = 0; $value = parent::getBrokerContact($brokerId); $memcache->add($key, $value, 0, $time); } APF::get_instance()->benchmark_end(__CLASS__ . $key); return $value; }