This is an automated email from the ASF dual-hosted git repository.

hqtran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 78d4831eeecc0790b1edc92f1f520bafd1beb6b4
Author: Quan Tran <hqt...@linagora.com>
AuthorDate: Mon Jun 2 16:17:21 2025 +0700

    JAMES-3693 Polish RedisConfiguration.asString method
---
 .../james/backends/redis/RedisConfiguration.scala  | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git 
a/backends-common/redis/src/main/java/org/apache/james/backends/redis/RedisConfiguration.scala
 
b/backends-common/redis/src/main/java/org/apache/james/backends/redis/RedisConfiguration.scala
index 6f1a591658..4700dc7a09 100644
--- 
a/backends-common/redis/src/main/java/org/apache/james/backends/redis/RedisConfiguration.scala
+++ 
b/backends-common/redis/src/main/java/org/apache/james/backends/redis/RedisConfiguration.scala
@@ -126,8 +126,9 @@ case class StandaloneRedisConfiguration(redisURI: RedisURI, 
useSSL: Boolean, may
   override def asString: String = MoreObjects.toStringHelper(this)
     .add("topology", STANDALONE_TOPOLOGY)
     .add("redisURI", redisURI.toString)
-    .add("redis.ioThreads", ioThreads)
-    .add("redis.workerThreads", workerThreads)
+    .add("ioThreads", ioThreads)
+    .add("workerThreads", workerThreads)
+    .add("useSSL", useSSL)
     .toString
 }
 
@@ -176,8 +177,10 @@ case class MasterReplicaRedisConfiguration(redisURI: 
RedisUris, useSSL: Boolean,
   override def asString: String = MoreObjects.toStringHelper(this)
     .add("topology", MASTER_REPLICA_TOPOLOGY)
     .add("redisURI", redisURI.value.map(_.toString).mkString(";"))
-    .add("redis.ioThreads", ioThreads)
-    .add("redis.workerThreads", workerThreads)
+    .add("ioThreads", ioThreads)
+    .add("workerThreads", workerThreads)
+    .add("useSSL", useSSL)
+    .add("readFrom", readFrom)
     .toString
 }
 
@@ -211,8 +214,9 @@ case class ClusterRedisConfiguration(redisURI: RedisUris, 
useSSL: Boolean, mayBe
   override def asString: String = MoreObjects.toStringHelper(this)
     .add("topology", CLUSTER_TOPOLOGY)
     .add("redisURI", redisURI.value.map(_.toString).mkString(";"))
-    .add("redis.ioThreads", ioThreads)
-    .add("redis.workerThreads", workerThreads)
+    .add("ioThreads", ioThreads)
+    .add("workerThreads", workerThreads)
+    .add("useSSL", useSSL)
     .add("readFrom", readFrom)
     .toString
 }
@@ -250,8 +254,10 @@ case class SentinelRedisConfiguration(redisURI: RedisURI, 
useSSL: Boolean, mayBe
   override def asString: String = MoreObjects.toStringHelper(this)
     .add("topology", SENTINEL_TOPOLOGY)
     .add("redisURI", redisURI.toString)
-    .add("redis.ioThreads", ioThreads)
-    .add("redis.workerThreads", workerThreads)
+    .add("ioThreads", ioThreads)
+    .add("workerThreads", workerThreads)
+    .add("useSSL", useSSL)
+    .add("readFrom", readFrom)
     .toString
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to