Exemplo n.º 1
0
 public function get_broker_paytype_info($payid)
 {
     $key = Util_MemCacheKey::getBrokerPaytypeInfo($payid);
     APF::get_instance()->benchmark_begin(__CLASS__ . " getBrokerPaytypeInfo ");
     $memcache = APF_Cache_Factory::get_instance()->get_memcache();
     $value = $memcache->get($key);
     if (!$value) {
         $time = Util_MemCacheTime::getBrokerPaytypeInfo();
         $value = parent::get_broker_paytype_info($payid);
         $memcache->add($key, $value, 0, $time);
     }
     APF::get_instance()->benchmark_end(__CLASS__ . " getBrokerPaytypeInfo ");
     return $value;
 }