private <T> Mono<T> createMono(Function<ReactiveSetCommands, Publisher<T>> function) { Assert.notNull(function, "Function must not be null!"); return template.createMono(connection -> function.apply(connection.setCommands())); }
private <T> Flux<T> createFlux(Function<ReactiveSetCommands, Publisher<T>> function) { Assert.notNull(function, "Function must not be null!"); return template.createFlux(connection -> function.apply(connection.setCommands())); }
private <T> Mono<T> createMono(Function<ReactiveSetCommands, Publisher<T>> function) { Assert.notNull(function, "Function must not be null!"); return template.createMono(connection -> function.apply(connection.setCommands())); }
private <T> Mono<T> createMono(Function<ReactiveSetCommands, Publisher<T>> function) { Assert.notNull(function, "Function must not be null!"); return template.createMono(connection -> function.apply(connection.setCommands())); }
private <T> Flux<T> createFlux(Function<ReactiveSetCommands, Publisher<T>> function) { Assert.notNull(function, "Function must not be null!"); return template.createFlux(connection -> function.apply(connection.setCommands())); }
private <T> Flux<T> createFlux(Function<ReactiveSetCommands, Publisher<T>> function) { Assert.notNull(function, "Function must not be null!"); return template.createFlux(connection -> function.apply(connection.setCommands())); }
@GetMapping("") public Mono<List<String>> all() { return this.factory.getReactiveConnection() .setCommands() .sMembers(ByteBuffer.wrap("users:user:favorites".getBytes())) .map(FavoriteController::toString) .collectList(); }
.block(); conn.setCommands() .sAdd( ByteBuffer.wrap("users:user:favorites".getBytes()),