Пример #1
0
 public function getBrokerInfoByBrokerId($brokerid, $withTrustFlag = 0, $flg = false)
 {
     $key = Util_MemCacheKey::get_property_list_broker($brokerid) . "_" . $withTrustFlag;
     APF::get_instance()->benchmark_begin(__CLASS__ . " getBrokerInfoByBrokerId ");
     $memcache = APF_Cache_Factory::get_instance()->get_memcache();
     if ($flg) {
         $memcache->delete($key);
     }
     $list = $memcache->get($key);
     // $list = '';
     if (!$list) {
         $time = Util_MemCacheTime::get_property_list_broker();
         $list = parent::getBrokerInfoByBrokerId($brokerid, $withTrustFlag);
         $memcache->add($key, $list, 0, $time);
     }
     APF::get_instance()->benchmark_end(__CLASS__ . " getBrokerInfoByBrokerId ");
     return $list;
 }