示例#1
0
 public function get_broker_base_info($brokerid)
 {
     $key = Util_MemCacheKey::getBrokerBaseInfo($brokerid);
     APF::get_instance()->benchmark_begin(__CLASS__ . " getBrokerBaseInfo ");
     $memcache = APF_Cache_Factory::get_instance()->get_memcache();
     $value = $memcache->get($key);
     if (!$value) {
         $time = Util_MemCacheTime::getBrokerBaseInfo();
         $value = parent::get_broker_base_info($brokerid);
         $memcache->add($key, $value, 0, $time);
     }
     APF::get_instance()->benchmark_end(__CLASS__ . " getBrokerBaseInfo ");
     return $value;
 }