コード例 #1
0
 public function get_choose_info_by_id($bid)
 {
     $key = Util_MemCacheKey::get_choose_broker_info($bid);
     APF::get_instance()->benchmark_begin(__CLASS__ . " get_choose_info_by_id ");
     $memcache = APF_Cache_Factory::get_instance()->get_memcache();
     $list = $memcache->get($key);
     if (!$list) {
         $list = parent::get_choose_info_by_id($bid);
         $memcache->add($key, $list, 0, Util_MemCacheTime::get_choose_broker_info());
     }
     APF::get_instance()->benchmark_end(__CLASS__ . " get_choose_info_by_id ");
     return $list;
 }