/** * Use a {@link Flux} to iterate over keys. The resulting {@link Flux} acts as a cursor and issues {@code SCAN} * commands itself as long as the subscriber signals demand. * * @return never {@literal null}. * @see <a href="http://redis.io/commands/scan">Redis Documentation: SCAN</a> * @since 2.1 */ default Flux<ByteBuffer> scan() { return scan(ScanOptions.NONE); }
@Override public Flux<K> scan(ScanOptions options) { Assert.notNull(options, "ScanOptions must not be null!"); return createFlux(connection -> connection.keyCommands().scan(options)) // .map(this::readKey); }
/** * Use a {@link Flux} to iterate over keys. The resulting {@link Flux} acts as a cursor and issues {@code SCAN} * commands itself as long as the subscriber signals demand. * * @return never {@literal null}. * @see <a href="http://redis.io/commands/scan">Redis Documentation: SCAN</a> * @since 2.1 */ default Flux<ByteBuffer> scan() { return scan(ScanOptions.NONE); }
/** * Use a {@link Flux} to iterate over keys. The resulting {@link Flux} acts as a cursor and issues {@code SCAN} * commands itself as long as the subscriber signals demand. * * @return never {@literal null}. * @see <a href="http://redis.io/commands/scan">Redis Documentation: SCAN</a> * @since 2.1 */ default Flux<ByteBuffer> scan() { return scan(ScanOptions.NONE); }
@Override public Flux<K> scan(ScanOptions options) { Assert.notNull(options, "ScanOptions must not be null!"); return createFlux(connection -> connection.keyCommands().scan(options)) // .map(this::readKey); }
@Override public Flux<K> scan(ScanOptions options) { Assert.notNull(options, "ScanOptions must not be null!"); return createFlux(connection -> connection.keyCommands().scan(options)) // .map(this::readKey); }