src/main/java/ai/grakn/redismock/RedisClient.java
private Optional<RedisCommand> nextCommand(){
        try {
            return Optional.of(RedisCommandParser.parse(in));
        } catch (EOFException e) {
            //IGNORED often there will be nothing on the stream
        }
        return Optional.empty();
    }
/**
     * Gets the next command on the stream if one has been issued
     *
     * @return The next command on the stream if one was issues
     */
Gets the next command on the stream if one has been issued
@return The next command on the stream if one was issues
Gets the next command on the stream if one has been issued @return The next command on the stream if one was issues
private Optional<RedisCommand> nextCommand(){
        try {
            return Optional.of(RedisCommandParser.parse(in));
        } catch (EOFException e) {
        }
        return Optional.empty();
    }
private Optional < RedisCommand > nextCommand ( ) { try { return Optional . of ( RedisCommandParser . parse ( in ) ) ; } catch ( EOFException e ) { } return Optional . empty ( ) ; }
Gets the next command on the stream if one has been issued
 @return The next command on the stream if one was issues
Gets the next command on the stream if one has been issued @return The next command on the stream if one was issues
//IGNORED often there will be nothing on the stream