コード例 #1
0
 /**
  * 获取经济人执照号 -- 香港专用
  * @param $brokerid
  */
 public function get_broker_license($brokerid)
 {
     $key = Util_MemCacheKey::get_broker_license($brokerid);
     APF::get_instance()->benchmark_begin(__CLASS__ . " get_broker_license ");
     $memcache = APF_Cache_Factory::get_instance()->get_memcache();
     $list = $memcache->get($key);
     if (!$list) {
         $time = Util_MemCacheTime::get_broker_license();
         $list = parent::get_broker_license($brokerid);
         $memcache->add($key, $list, 0, $time);
     }
     APF::get_instance()->benchmark_end(__CLASS__ . " get_broker_license ");
     return $list;
 }