Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 69e3547

Browse files
dverkademeker12
authored andcommitted
Changed example code (#3022)
Magento uses [ ] for arrays instead of array() in the env.php file. Changed this example code so that it confirms to this standard.
1 parent 48e3829 commit 69e3547

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

guides/v2.2/config-guide/redis/redis-pg-cache.md

+12-18
Original file line numberDiff line numberDiff line change
@@ -122,33 +122,27 @@ The following example enables Redis page caching, sets the host to `redis.exampl
122122
As a result of the two example commands, Magento adds lines similar to the following to `<Magento install dir>app/etc/env.php`:
123123

124124
```
125-
'cache' =>
126-
array(
127-
'frontend' =>
128-
array(
129-
'default' =>
130-
array(
125+
'cache' => [
126+
'frontend' => [
127+
'default' => [
131128
'backend' => 'Cm_Cache_Backend_Redis',
132-
'backend_options' =>
133-
array(
129+
'backend_options' => [
134130
'server' => 'redis.example.com',
135131
'database' => '0',
136132
'port' => '6379'
137-
),
138-
),
139-
'page_cache' =>
140-
array(
133+
],
134+
],
135+
'page_cache' => [
141136
'backend' => 'Cm_Cache_Backend_Redis',
142-
'backend_options' =>
143-
array(
137+
'backend_options' => [
144138
'server' => 'redis.example.com',
145139
'port' => '6379',
146140
'database' => '1',
147141
'compress_data' => '0'
148-
)
149-
)
150-
)
151-
),
142+
]
143+
]
144+
]
145+
],
152146
```
153147

154148
## Basic verification {#redis-verify}

0 commit comments

Comments
 (0)