/** * 批量获取键值 * @param array $keys 键名数组 * @return array|false 键值数组,失败返回false */ public function mGet($keys) { try { $ret = []; $values = $this->handler->multi_get($keys); foreach ($keys as $key) { $ret[$key] = isset($values[$key]) ? self::getValue($values[$key]) : false; } return $ret; } catch (SSDBException $ex) { self::exception($ex); //连接状态置为false $this->isConnected = false; } return false; }