public function get_agent_user_type($userid) { if (!$userid) { return false; } $key = Util_MemCacheKey::get_agent_user_type($userid); APF::get_instance()->benchmark_begin(__CLASS__ . " get_agent_user_type "); $memcache = APF_Cache_Factory::get_instance()->get_memcache(); $list = $memcache->get($key); if (!$list) { $time = Util_MemCacheTime::get_agent_user_type(); $list = parent::get_agent_user_type($userid); $memcache->add($key, $list, 0, $time); } APF::get_instance()->benchmark_end(__CLASS__ . " get_agent_user_type "); return $list; }