List of usage examples for org.springframework.data.redis.connection.jedis JedisConverters toString
@Nullable public static String toString(@Nullable byte[] source)
From source file:org.springframework.data.redis.connection.jedis.JedisClusterConnection.java
@Override public Integer clusterGetSlotForKey(byte[] key) { return clusterCommandExecutor .executeCommandOnArbitraryNode((JedisClusterCommandCallback<Integer>) client -> client .clusterKeySlot(JedisConverters.toString(key)).intValue()) .getValue();//from ww w. j av a 2 s . com }