Update documentation to reflect preference for Lettuce
See gh-886
This commit is contained in:
@@ -109,7 +109,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `JedisConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `JedisConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ server.session.timeout=60
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `LettuceConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `JedisConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `LettuceConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `LettuceConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `LettuceConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `LettuceConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `LettuceConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ You can run the sample by obtaining the {download-url}[source code] and invoking
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
For the sample to work, you must http://redis.io/download[install Redis 2.8+] on localhost and run it with the default port (6379).
|
||||||
Alternatively, you can update the `LettuceConnectionFactory` to point to a Redis server.
|
Alternatively, you can update the `RedisConnectionFactory` to point to a Redis server.
|
||||||
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
Another option is to use https://www.docker.com/[Docker] to run Redis on localhost. See https://hub.docker.com/_/redis/[Docker Redis repository] for detailed instructions.
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ import org.springframework.util.Assert;
|
|||||||
* A typical example of how to create a new instance can be seen below:
|
* A typical example of how to create a new instance can be seen below:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* JedisConnectionFactory factory = new JedisConnectionFactory();
|
* LettuceConnectionFactory factory = new LettuceConnectionFactory();
|
||||||
*
|
*
|
||||||
* RedisOperationsSessionRepository redisSessionRepository = new RedisOperationsSessionRepository(factory);
|
* RedisOperationsSessionRepository redisSessionRepository = new RedisOperationsSessionRepository(factory);
|
||||||
* </pre>
|
* </pre>
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ import org.springframework.session.data.redis.RedisFlushMode;
|
|||||||
* public class RedisHttpSessionConfig {
|
* public class RedisHttpSessionConfig {
|
||||||
*
|
*
|
||||||
* {@literal @Bean}
|
* {@literal @Bean}
|
||||||
* public JedisConnectionFactory connectionFactory() throws Exception {
|
* public LettuceConnectionFactory connectionFactory() {
|
||||||
* return new JedisConnectionFactory();
|
* return new LettuceConnectionFactory();
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* }
|
* }
|
||||||
|
|||||||
Reference in New Issue
Block a user