File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/data Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,20 @@ spring:
58
58
password: "secret"
59
59
----
60
60
61
+ You can also specify the url of the Redis server directly.
62
+ When setting the url, the host, port, username and password properties are ignored.
63
+ This is shown in the following example:
64
+
65
+ [configprops,yaml]
66
+ ----
67
+ spring:
68
+ data:
69
+ redis:
70
+ url: "redis://user:secret@localhost:6379"
71
+ database: 0
72
+ ----
73
+
74
+
61
75
TIP: You can also register an arbitrary number of beans that implement `LettuceClientConfigurationBuilderCustomizer` for more advanced customizations.
62
76
`ClientResources` can also be customized using `ClientResourcesBuilderCustomizer`.
63
77
If you use Jedis, `JedisClientConfigurationBuilderCustomizer` is also available.
You can’t perform that action at this time.
0 commit comments