diff --git a/pom.xml b/pom.xml
index e6d868411f..33d4a70be2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.springframework.dataspring-data-redis
- 1.8.0.BUILD-SNAPSHOT
+ 1.8.0.DATAREDIS-503-SNAPSHOTSpring Data Redis
diff --git a/src/main/asciidoc/reference/redis.adoc b/src/main/asciidoc/reference/redis.adoc
index 5fc66ab50c..52453487e3 100644
--- a/src/main/asciidoc/reference/redis.adoc
+++ b/src/main/asciidoc/reference/redis.adoc
@@ -50,13 +50,13 @@ http://github.com/xetorthio/jedis[Jedis] is one of the connectors supported by t
[source,xml]
----
-
-
+
-
+
----
@@ -64,14 +64,14 @@ For production use however, one might want to tweak the settings such as the hos
[source,xml]
----
-
-
+
-
+
-
+
----
@@ -85,13 +85,13 @@ A typical JRedis configuration can looks like this:
[source,xml]
----
-
-
+
-
+
----
@@ -101,9 +101,9 @@ The configuration is quite similar to Jedis, with one notable exception. By defa
----
-
+
@@ -112,7 +112,7 @@ The configuration is quite similar to Jedis, with one notable exception. By defa
-
+
----
@@ -125,14 +125,14 @@ By now, its configuration is probably easy to guess:
[source,xml]
----
-
-
+
-
+
-
+
----
@@ -148,13 +148,13 @@ Its configuration is probably easy to guess:
[source,xml]
----
-
-
+
-
+
----
@@ -172,12 +172,12 @@ NOTE: Please note that currently only http://github.com/xetorthio/jedis[Jedis] a
/**
* jedis
*/
-@Bean
+@Bean
public RedisConnectionFactory jedisConnectionFactory() {
RedisSentinelConfiguration sentinelConfig = new RedisSentinelConfiguration() .master("mymaster")
.sentinel("127.0.0.1", 26379) .sentinel("127.0.0.1", 26380);
return new JedisConnectionFactory(sentinelConfig);
-}
+}
/**
* lettuce
@@ -262,33 +262,33 @@ For cases where a certain template *view* is needed, declare the view as a depen
[source,xml]
----
-
-
+
- ...
-
+ ...
+
----
[source,java]
----
-public class Example {
-
- // inject the actual template
- @Autowired
- private RedisTemplate template;
+public class Example {
+
+ // inject the actual template
+ @Autowired
+ private RedisTemplate template;
// inject the template as ListOperations
- @Resource(name="redisTemplate")
+ @Resource(name="redisTemplate")
private ListOperations listOps;
public void addLink(String userId, URL url) {
- listOps.leftPush(userId, url.toExternalForm());
+ listOps.leftPush(userId, url.toExternalForm());
}
}
----
@@ -301,27 +301,27 @@ Since it's quite common for the keys and values stored in Redis to be `java.lang
[source,xml]
----
-
-
+
-
+
- ...
+ ...
----
[source,java]
----
-public class Example {
-
+public class Example {
+
@Autowired
- private StringRedisTemplate redisTemplate;
-
+ private StringRedisTemplate redisTemplate;
+
public void addLink(String userId, URL url) {
- redisTemplate.opsForList().leftPush(userId, url.toExternalForm());
+ redisTemplate.opsForList().leftPush(userId, url.toExternalForm());
}
}
----
@@ -330,12 +330,12 @@ As with the other Spring templates, `RedisTemplate` and `StringRedisTemplate` al
[source,java]
----
-public void useCallback() {
+public void useCallback() {
- redisTemplate.execute(new RedisCallback