File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
src/main/java/redis/clients/jedis Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1616<setting id =" org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value =" do not insert" />
1717<setting id =" org.eclipse.jdt.core.formatter.blank_lines_before_field" value =" 0" />
1818<setting id =" org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value =" do not insert" />
19- <setting id =" org.eclipse.jdt.core.formatter.use_on_off_tags" value =" false " />
19+ <setting id =" org.eclipse.jdt.core.formatter.use_on_off_tags" value =" true " />
2020<setting id =" org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value =" do not insert" />
2121<setting id =" org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value =" do not insert" />
2222<setting id =" org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value =" do not insert" />
Original file line number Diff line number Diff line change 1313import redis .clients .jedis .providers .ConnectionProvider ;
1414import redis .clients .jedis .util .JedisClusterCRC16 ;
1515
16+ // @formatter:off
1617/**
1718 * RedisClusterClient provides a high-level, unified interface for interacting with a Redis Cluster.
1819 * <p>
2223 * <p>
2324 * <b>Usage:</b>
2425 *
25- * <pre>
26- * {
27- * @code
26+ * <pre>{@code
2827 * Set<HostAndPort> clusterNodes = new HashSet<>();
2928 * clusterNodes.add(new HostAndPort("127.0.0.1", 7000));
3029 * RedisClusterClient client = new RedisClusterClient(clusterNodes);
3130 * client.set("key", "value");
3231 * String value = client.get("key");
33- * }
34- * </pre>
32+ * }</pre>
3533 * <p>
3634 * <b>Migration:</b> Users of {@code JedisCluster} are encouraged to migrate to this class for
3735 * improved API consistency, better resource management, and enhanced support for future Redis
4240 * <b>Configuration:</b> Various constructors allow for flexible configuration, including
4341 * authentication and custom timeouts.
4442 */
43+ // @formatter:on
4544public class RedisClusterClient extends UnifiedJedis {
4645
4746 public static final String INIT_NO_ERROR_PROPERTY = "jedis.cluster.initNoError" ;
Original file line number Diff line number Diff line change 77import redis .clients .jedis .providers .ConnectionProvider ;
88import redis .clients .jedis .providers .SentineledConnectionProvider ;
99
10+ // @formatter:off
1011/**
1112 * A high-level client for interacting with Redis Sentinel-managed Redis deployments.
1213 * <p>
2324 * .masterName("mymaster").build();
2425 * </pre>
2526 * <p>
26- * <b>Relationship to {@code JedisSentineled}:</b>
27+ * <b>Relationship to {@code JedisSentineled}:</b></p>
2728 * <ul>
2829 * <li>{@code RedisSentinelClient} is the recommended replacement for the deprecated
2930 * {@code JedisSentineled} class.</li>
3233 * <li>Use {@code RedisSentinelClient} for new codebases and when migrating from
3334 * {@code JedisSentineled}.</li>
3435 * </ul>
35- * </p>
3636 */
37+ // @formatter:on
3738public class RedisSentinelClient extends UnifiedJedis {
3839 private RedisSentinelClient (CommandExecutor commandExecutor ,
3940 ConnectionProvider connectionProvider , CommandObjects commandObjects ,
You can’t perform that action at this time.
0 commit comments