I am using the Vert.x Redis client in my Java application and have been asked by the Redis team to add the following configuration parameters:
enablePeriodicRefresh set to true
refreshPeriod set with a default value of 60 seconds
However, when I look at the RedisOptions class in the Vert.x Redis client library, I can’t find these settings. It seems like there are no direct options to enable periodic refresh or set a refresh period.
Here is the dependency I am using:
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-redis-client</artifactId>
<version>4.3.4</version>
</dependency>
I checked the documentation and source code but couldn’t find anything related to enablePeriodicRefresh or refreshPeriod.
My questions are:
- Does the Vert.x Redis client manage periodic refresh internally, or do I need to implement it manually?
- If it needs to be implemented manually, what is the best way to do it?