File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 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:
5151 # - auth:
5252 # - '%env(REDIS_PASSWORD)%'
5353
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)
5555 # - auth:
5656 # - ['%env(REDIS_USER)%','%env(REDIS_PASSWORD)%']
5757
@@ -74,6 +74,12 @@ First, define a Symfony service for the connection to the Redis server:
7474 <call method="auth">
7575 <argument>%env(REDIS_PASSWORD)%</argument>
7676 </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> -->
7783 </service >
7884 </services >
7985 </container >
@@ -87,6 +93,8 @@ First, define a Symfony service for the connection to the Redis server:
8793 ->addMethodCall('connect', ['%env(REDIS_HOST)%', '%env(int:REDIS_PORT)%'])
8894 // uncomment the following if your Redis server requires a password:
8995 // ->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)%'])
9098 ;
9199
92100 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