src/mako/redis/Redis.php
protected function handleErrorResponse(string $response)
	{
		$response = substr($response, 1);

		[$type, $error] = explode(' ', $response, 2);

		switch($type)
		{
			case 'MOVED':
			case 'ASK':
				return $this->getClusterClient($error)->sendCommandAndGetResponse($this->lastCommand);
				break;
			default:
				throw new RedisException(vsprintf('%s.', [$response]));
		}
	}
protected function handleErrorResponse(string $response)
	{
		$response = substr($response, 1);

		[$type, $error] = explode(' ', $response, 2);

		switch($type)
		{
			case 'MOVED':
			case 'ASK':
				return $this->getClusterClient($error)->sendCommandAndGetResponse($this->lastCommand);
				break;
			default:
				throw new RedisException(vsprintf('%s.', [$response]));
		}
	}
protected function handleErrorResponse ( string $ response ) { $ response = substr ( $ response , 1 ) ; [ $ type , $ error ] = explode ( ' ' , $ response , 2 ) ; switch ( $ type ) { case 'MOVED' : case 'ASK' : return $ this -> getClusterClient ( $ error ) -> sendCommandAndGetResponse ( $ this -> lastCommand ) ; break ; default : throw new RedisException ( vsprintf ( '%s.' , [ $ response ] ) ) ; } }
Handles redis error responses.

@param  string                     $response Error response
@throws \mako\redis\RedisException
@return mixed
Handles redis error responses .