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