I use redis as my cache server when i use springboot. But i read the spring-data-redis source, when evict cache, the code is
byte[][] keys = Optional.ofNullable(connection.keys(pattern)).orElse(Collections.emptySet())
.toArray(new byte[0][]);
Redis recommends replacing the keys command with the scan command. why does the spring team not do this.