Skip to content

Commit 45f19a6

Browse files
committed
spring-projects#166 - Rename Redis cluster-sentinel to sentinel.
Rename the Redis cluster-sentinel project to sentinel and leave a hint in the cluster-sentinel directory that points to the Redis Cluster and Redis Sentinel examples mentioning clarifying the cluster-sentinel naming.
1 parent b1ffd9c commit 45f19a6

File tree

7 files changed

+39
-34
lines changed

7 files changed

+39
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ We have separate folders for the samples of individual modules:
3838

3939
* `example` - Example for basic Spring Data Redis setup.
4040
* `cluster` - Example for Redis Cluster support.
41-
* `cluster-sentinel` - Example for Redis Sentinel support.
41+
* `sentinel` - Example for Redis Sentinel support.
4242
* `repository` - Example demonstrating Spring Data repository abstraction on top of Redis.
4343

4444
## Spring Data Elasticsearch

redis/cluster-sentinel/README.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
1-
# Spring Data Redis - Sentinel Examples
1+
# Spring Data Redis Example
22

3-
This project contains samples of Sentinel specific features of Spring Data Redis.
4-
5-
## Support for Sentinel
6-
7-
```java
8-
@Configuration
9-
public class RedisSentinelApplicationConfig {
10-
11-
static final RedisSentinelConfiguration SENTINEL_CONFIG = new RedisSentinelConfiguration().master("mymaster") //
12-
.sentinel("localhost", 26379) //
13-
.sentinel("localhost", 26380) //
14-
.sentinel("localhost", 26381);
15-
16-
@Bean
17-
public RedisConnectionFactory connectionFactory() {
18-
return new JedisConnectionFactory(sentinelConfig());
19-
}
20-
21-
@Bean
22-
public RedisSentinelConfiguration sentinelConfig() {
23-
return SENTINEL_CONFIG;
24-
}
25-
26-
}
27-
```
3+
The this example was named a bit misleading as `cluster-sentinel` is a mix of Redis Cluster and Redis Sentinel.
284

5+
Find dedicated examples here: [Redis Cluster](../cluster) and [Redis Sentinel](../sentinel).

redis/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
<description>Sample projects for Spring Data Redis</description>
1717

1818
<modules>
19-
<module>util</module>
20-
<module>cluster-sentinel</module>
21-
<module>example</module>
2219
<module>cluster</module>
23-
<module>repositories</module>
20+
<module>example</module>
2421
<module>reactive</module>
22+
<module>repositories</module>
23+
<module>sentinel</module>
24+
<module>util</module>
2525
</modules>
2626

2727
<dependencies>

redis/sentinel/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Spring Data Redis - Sentinel Examples
2+
3+
This project contains samples of Sentinel specific features of Spring Data Redis.
4+
5+
## Support for Sentinel
6+
7+
```java
8+
@Configuration
9+
public class RedisSentinelApplicationConfig {
10+
11+
static final RedisSentinelConfiguration SENTINEL_CONFIG = new RedisSentinelConfiguration().master("mymaster") //
12+
.sentinel("localhost", 26379) //
13+
.sentinel("localhost", 26380) //
14+
.sentinel("localhost", 26381);
15+
16+
@Bean
17+
public RedisConnectionFactory connectionFactory() {
18+
return new JedisConnectionFactory(sentinelConfig());
19+
}
20+
21+
@Bean
22+
public RedisSentinelConfiguration sentinelConfig() {
23+
return SENTINEL_CONFIG;
24+
}
25+
26+
}
27+
```
28+

redis/cluster-sentinel/pom.xml renamed to redis/sentinel/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<artifactId>spring-data-redis-cluster-sentinel-example</artifactId>
6-
<name>Spring Data Redis - Cluster/Sentinel Example</name>
5+
<artifactId>spring-data-redis-sentinel-example</artifactId>
6+
<name>Spring Data Redis - Sentinel Example</name>
77

88
<parent>
99
<groupId>org.springframework.data.examples</groupId>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2016 the original author or authors.
2+
* Copyright 2014-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)