|
16 | 16 | /** |
17 | 17 | * RedisClusterClient provides a high-level, unified interface for interacting with a Redis Cluster. |
18 | 18 | * <p> |
19 | | - * This class is intended as a modern replacement for the deprecated {@code JedisCluster} class. |
20 | | - * It supports all cluster operations and is designed to work seamlessly with the {@link UnifiedJedis} |
| 19 | + * This class is intended as a modern replacement for the deprecated {@code JedisCluster} class. It |
| 20 | + * supports all cluster operations and is designed to work seamlessly with the {@link UnifiedJedis} |
21 | 21 | * API, allowing for consistent usage patterns across standalone, sentinel, and cluster deployments. |
22 | 22 | * <p> |
23 | 23 | * <b>Usage:</b> |
24 | | - * <pre>{@code |
25 | | - * Set<HostAndPort> clusterNodes = new HashSet<>(); |
26 | | - * clusterNodes.add(new HostAndPort("127.0.0.1", 7000)); |
27 | | - * RedisClusterClient client = new RedisClusterClient(clusterNodes); |
28 | | - * client.set("key", "value"); |
29 | | - * String value = client.get("key"); |
30 | | - * }</pre> |
| 24 | + * |
| 25 | + * <pre> |
| 26 | + * { |
| 27 | + * @code |
| 28 | + * Set<HostAndPort> clusterNodes = new HashSet<>(); |
| 29 | + * clusterNodes.add(new HostAndPort("127.0.0.1", 7000)); |
| 30 | + * RedisClusterClient client = new RedisClusterClient(clusterNodes); |
| 31 | + * client.set("key", "value"); |
| 32 | + * String value = client.get("key"); |
| 33 | + * } |
| 34 | + * </pre> |
31 | 35 | * <p> |
32 | | - * <b>Migration:</b> |
33 | | - * Users of {@code JedisCluster} are encouraged to migrate to this class for improved API consistency, |
34 | | - * better resource management, and enhanced support for future Redis features. |
| 36 | + * <b>Migration:</b> Users of {@code JedisCluster} are encouraged to migrate to this class for |
| 37 | + * improved API consistency, better resource management, and enhanced support for future Redis |
| 38 | + * features. |
35 | 39 | * <p> |
36 | | - * <b>Thread-safety:</b> |
37 | | - * This client is thread-safe and can be shared across multiple threads. |
| 40 | + * <b>Thread-safety:</b> This client is thread-safe and can be shared across multiple threads. |
38 | 41 | * <p> |
39 | | - * <b>Configuration:</b> |
40 | | - * Various constructors allow for flexible configuration, including authentication and custom timeouts. |
| 42 | + * <b>Configuration:</b> Various constructors allow for flexible configuration, including |
| 43 | + * authentication and custom timeouts. |
41 | 44 | */ |
42 | 45 | public class RedisClusterClient extends UnifiedJedis { |
43 | 46 |
|
|
0 commit comments