This is to resolve issues when constructing a LettucePoolingClientConfiguration
pool config.
I was trying to establish a connection pool with the Lettuce driver using spring-boot-starter-data-redis
, but ran into compilation issues as the commons-pool2
was not a dependency in build.gradle
.
Sample code here
Resolves: https://github.com/spring-projects/spring-boot/issues/12843#issuecomment-380738137
Comment From: pivotal-issuemaster
@ashok2ashok Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-issuemaster
@ashok2ashok Thank you for signing the Contributor License Agreement!
Comment From: ashok2ashok
Just read the migration guide. Looks like it's not a hard dependency and is optional. Is the below statement still valid from the documentation? If yes - I'll close this PR and explicitly add the dependency in my implementation.
Connection pooling is optional and, if you are using it, you now need to add commons-pool2 yourself as Lettuce, contrary to Jedis, does not bring it transitively.
Comment From: wilkinsona
Yes, the statement is still valid. Thank you anyway for your pull request.