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