February 2018
Intermediate to advanced
356 pages
9h 10m
English
To configure the ReactiveRedisConnectionFactory, we can use the application.yaml file, because it is easier to maintain and centralize our configuration.
The principle is the same as other Spring Data Projects, we should provide the host and port configurations in the application.yaml file, as follows:
spring: redis: host: localhost port: 6379
In the preceding configuration file, we point the Redis configuration to the localhost, as we can see. The configuration is pretty simple and easy to understand as well.
Done. The connection factory is configured. The next step is to provide a RedisTemplate to interact with our Redis instance. Take a look at the next section.