Skip to content

Commit 3085004

Browse files
committed
change ctor access modifiers
1 parent b83a5d4 commit 3085004

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/redis/clients/jedis/JedisCluster.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public JedisCluster(Set<HostAndPort> clusterNodes, JedisClientConfig clientConfi
233233
}
234234

235235
@Experimental
236-
protected JedisCluster(Set<HostAndPort> clusterNodes, JedisClientConfig clientConfig, Cache clientSideCache,
236+
public JedisCluster(Set<HostAndPort> clusterNodes, JedisClientConfig clientConfig, Cache clientSideCache,
237237
int maxAttempts, Duration maxTotalRetriesDuration) {
238238
this(new ClusterConnectionProvider(clusterNodes, clientConfig, clientSideCache), maxAttempts,
239239
maxTotalRetriesDuration, clientConfig.getRedisProtocol(), clientSideCache);

src/main/java/redis/clients/jedis/UnifiedJedis.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public UnifiedJedis(HostAndPort hostAndPort, JedisClientConfig clientConfig) {
9999
}
100100

101101
@Experimental
102-
protected UnifiedJedis(HostAndPort hostAndPort, JedisClientConfig clientConfig, CacheConfig cacheConfig) {
102+
public UnifiedJedis(HostAndPort hostAndPort, JedisClientConfig clientConfig, CacheConfig cacheConfig) {
103103
this(hostAndPort, clientConfig, new CacheFactory().getCache(cacheConfig));
104104
}
105105

@@ -117,7 +117,7 @@ protected UnifiedJedis(ConnectionProvider provider, RedisProtocol protocol) {
117117
}
118118

119119
@Experimental
120-
public UnifiedJedis(ConnectionProvider provider, RedisProtocol protocol, Cache cache) {
120+
protected UnifiedJedis(ConnectionProvider provider, RedisProtocol protocol, Cache cache) {
121121
this(new DefaultCommandExecutor(provider), provider, new CommandObjects(), protocol, cache);
122122
}
123123

@@ -196,7 +196,7 @@ protected UnifiedJedis(ClusterConnectionProvider provider, int maxAttempts, Dura
196196
}
197197

198198
@Experimental
199-
public UnifiedJedis(ClusterConnectionProvider provider, int maxAttempts, Duration maxTotalRetriesDuration,
199+
protected UnifiedJedis(ClusterConnectionProvider provider, int maxAttempts, Duration maxTotalRetriesDuration,
200200
RedisProtocol protocol, Cache cache) {
201201
this(new ClusterCommandExecutor(provider, maxAttempts, maxTotalRetriesDuration), provider,
202202
new ClusterCommandObjects(), protocol, cache);

0 commit comments

Comments
 (0)