@Override public Flux<NumericResponse<LRemCommand, Long>> lRem(Publisher<LRemCommand> commands) { return connection.execute(cmd -> Flux.from(commands).concatMap(command -> { Assert.notNull(command.getKey(), "Key must not be null!"); Assert.notNull(command.getValue(), "Value must not be null!"); Assert.notNull(command.getCount(), "Count must not be null!"); return cmd.lrem(command.getKey(), command.getCount(), command.getValue()) .map(value -> new NumericResponse<>(command, value)); })); }
@Override public Flux<NumericResponse<LRemCommand, Long>> lRem(Publisher<LRemCommand> commands) { return connection.execute(cmd -> Flux.from(commands).concatMap(command -> { Assert.notNull(command.getKey(), "Key must not be null!"); Assert.notNull(command.getValue(), "Value must not be null!"); Assert.notNull(command.getCount(), "Count must not be null!"); return cmd.lrem(command.getKey(), command.getCount(), command.getValue()) .map(value -> new NumericResponse<>(command, value)); })); }
@Override public Flux<NumericResponse<LRemCommand, Long>> lRem(Publisher<LRemCommand> commands) { return connection.execute(cmd -> Flux.from(commands).concatMap(command -> { Assert.notNull(command.getKey(), "Key must not be null!"); Assert.notNull(command.getValue(), "Value must not be null!"); Assert.notNull(command.getCount(), "Count must not be null!"); return cmd.lrem(command.getKey(), command.getCount(), command.getValue()) .map(value -> new NumericResponse<>(command, value)); })); }