You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "EricJoy2048 (via GitHub)" <gi...@apache.org> on 2023/06/28 03:19:00 UTC

[GitHub] [seatunnel] EricJoy2048 commented on a diff in pull request #4975: [Feature][Connector-v2][RedisSink]Support redis to set expiration time.

EricJoy2048 commented on code in PR #4975:
URL: https://github.com/apache/seatunnel/pull/4975#discussion_r1244617032


##########
seatunnel-connectors-v2/connector-redis/src/main/java/org/apache/seatunnel/connectors/seatunnel/redis/config/RedisParameters.java:
##########
@@ -89,6 +90,9 @@ public void buildWithConfig(Config config) {
         if (config.hasPath(RedisConfig.KEY_PATTERN.key())) {
             this.keysPattern = config.getString(RedisConfig.KEY_PATTERN.key());
         }
+        if (config.hasPath(RedisConfig.EXPIRE.key())) {
+            this.expire = config.getLong(RedisConfig.EXPIRE.key());

Review Comment:
   It is suggest to use `EXPIRE.defaultvalue()`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org