src/mako/redis/Redis.php
protected function getResponse()
	{
		$response = trim($this->connection->readLine());

		switch(substr($response, 0, 1))
		{
			case '-': // error reply
				return $this->handleErrorResponse($response);
				break;
			case '+': // status reply
				return $this->handleStatusResponse($response);
				break;
			case ':': // integer reply
				return $this->handleIntegerResponse($response);
				break;
			case '$': // bulk reply
				return $this->handleBulkResponse($response);
				break;
			case '*': // multi-bulk reply
				return $this->handleMultiBulkResponse($response);
				break;
			default:
				throw new RedisException(vsprintf('Unable to handle server response [ %s ].', [$response]));
		}
	}
protected function getResponse()
	{
		$response = trim($this->connection->readLine());

		switch(substr($response, 0, 1))
		{
			case '-': // error reply
				return $this->handleErrorResponse($response);
				break;
			case '+': // status reply
				return $this->handleStatusResponse($response);
				break;
			case ':': // integer reply
				return $this->handleIntegerResponse($response);
				break;
			case '$': // bulk reply
				return $this->handleBulkResponse($response);
				break;
			case '*': // multi-bulk reply
				return $this->handleMultiBulkResponse($response);
				break;
			default:
				throw new RedisException(vsprintf('Unable to handle server response [ %s ].', [$response]));
		}
	}
protected function getResponse ( ) { $ response = trim ( $ this -> connection -> readLine ( ) ) ; switch ( substr ( $ response , 0 , 1 ) ) { case '-' : // error reply return $ this -> handleErrorResponse ( $ response ) ; break ; case '+' : // status reply return $ this -> handleStatusResponse ( $ response ) ; break ; case ':' : // integer reply return $ this -> handleIntegerResponse ( $ response ) ; break ; case '$' : // bulk reply return $ this -> handleBulkResponse ( $ response ) ; break ; case '*' : // multi-bulk reply return $ this -> handleMultiBulkResponse ( $ response ) ; break ; default : throw new RedisException ( vsprintf ( 'Unable to handle server response [ %s ].' , [ $ response ] ) ) ; } }
Returns response from redis server.

@throws \mako\redis\RedisException
@return mixed
Returns response from redis server .