title: Using JedisCluster to write to a partition in a Redis Cluster
body: <p>I have a Redis Cluster. I am using JedisCluster client to connect to my Redis. </p>
  
  <p>My application is a bit complex and I want to basically control to which partition data from my application goes. For example, my application consists of sub-module A, B, C. Then I want that all data from sub-module A should go to partition 1 for example. Similarly data from sub-module B should go to partition 2 for example and so on. </p>
  
  <p>I am using <code>JedisCluster</code>, but I don't find any API to write to a particular partition on my cluster. I am assuming I will have same partition names on all my Redis nodes and handling which data goes to which node will be automatically handled but to which partition will be handled by me. </p>
  
  <p>I tried going through the <code>JedisCluster</code> lib at</p>
  
  <p><a href="https://github.com/xetorthio/jedis/blob/b03d4231f4412c67063e356a7c3acf9bb7e62534/src/main/java/redis/clients/jedis/JedisCluster.java" rel="nofollow">https://github.com/xetorthio/jedis/blob/b03d4231f4412c67063e356a7c3acf9bb7e62534/src/main/java/redis/clients/jedis/JedisCluster.java</a></p>
  
  <p>but couldn't find anything. Please help?
  Thanks in advance for the help.</p>