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