When using the Scan function, we need to specify the ScanOption count as well. The default count for ScanOptions.scanOptions() in Spring Data Redis is not set, so Redis defaults to its internal value, typically 10.
Flux<String> ids = this.reactiveRedisTemplate.scan(ScanOptions.scanOptions() .match("EGA_ITEM_*")
.count(Integer.MAX_VALUE)
.build());