Skip to content

Commit 34db0f7

Browse files
saurabhygkHeartSaVioR
authored andcommitted
Pull request to change visibility of getConnectionFromSlot method (redis#1532)
* Added method to return connection handler to get natve connection * Change the visibility of getConnectionFromSlot(slot) method and exposed into this class to get Jedis Connection without exposing Connection Handler * Test case to validate Jedis Connection From Slot and pipeline operation on existing key and non existing Key * Removed test case as build gets failure.
1 parent a7cc306 commit 34db0f7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ public Map<String, JedisPool> getClusterNodes() {
7575
return connectionHandler.getNodes();
7676
}
7777

78+
public Jedis getConnectionFromSlot(int slot) {
79+
return this.connectionHandler.getConnectionFromSlot(slot);
80+
}
81+
7882
@Override
7983
public String set(final byte[] key, final byte[] value) {
8084
return new JedisClusterCommand<String>(connectionHandler, maxAttempts) {

0 commit comments

Comments
 (0)