File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ First, define a Symfony service for the connection to the Redis server:
51
51
# - auth:
52
52
# - '%env(REDIS_PASSWORD)%'
53
53
54
- # uncomment the following if your Redis server requires user and password (When user is not default)
54
+ # uncomment the following if your Redis server requires a user and a password (when user is not default)
55
55
# - auth:
56
56
# - ['%env(REDIS_USER)%','%env(REDIS_PASSWORD)%']
57
57
@@ -74,6 +74,12 @@ First, define a Symfony service for the connection to the Redis server:
74
74
<call method="auth">
75
75
<argument>%env(REDIS_PASSWORD)%</argument>
76
76
</call> -->
77
+
78
+ <!-- uncomment the following if your Redis server requires a user and a password (when user is not default):
79
+ <call method="auth">
80
+ <argument>%env(REDIS_USER)%</argument>
81
+ <argument>%env(REDIS_PASSWORD)%</argument>
82
+ </call> -->
77
83
</service >
78
84
</services >
79
85
</container >
@@ -87,6 +93,8 @@ First, define a Symfony service for the connection to the Redis server:
87
93
->addMethodCall('connect', ['%env(REDIS_HOST)%', '%env(int:REDIS_PORT)%'])
88
94
// uncomment the following if your Redis server requires a password:
89
95
// ->addMethodCall('auth', ['%env(REDIS_PASSWORD)%'])
96
+ // uncomment the following if your Redis server requires a user and a password (when user is not default):
97
+ // ->addMethodCall('auth', ['%env(REDIS_USER)%', '%env(REDIS_PASSWORD)%'])
90
98
;
91
99
92
100
Now pass this ``\Redis `` connection as an argument of the service associated to the
You can’t perform that action at this time.
0 commit comments