如何在Spring Boot中优化Redis连接池以提高性能

我的应用程序正在使用Spring Boot 2.2.5-RELEASE。

应用程序通过使用Spring Data Redis对Redis单一实例进行读取和写入。应用程序正在使用lettuce驱动(默认的Spring Data Redis)和默认的spring pooling配置。

//default-config values
spring.redis.lettuce.pool.max-active=8
spring.redis.lettuce.pool.max-idle=8
spring.redis.lettuce.pool.max-wait=-1ms
spring.redis.lettuce.pool.min-idle=0

我如何优化池值以提高Redis的性能。或任何建议。


StackOverflow:How to optimize Redis connection pool in Spring Boot to improve the performance - Stack Overflow