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

Commit fa6eb80

Browse files
authored
Merge pull request #7427 from magento/vzabaznov-patch-1
Update Redis configuration page
2 parents 1d73b94 + 6a37dcd commit fa6eb80

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/guides/v2.4/config-guide/redis/redis-pg-cache.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ As a result of the two example commands, Magento adds lines similar to the follo
7777
'cache' => [
7878
'frontend' => [
7979
'default' => [
80-
'backend' => 'Cm_Cache_Backend_Redis',
80+
'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis',
8181
'backend_options' => [
8282
'server' => '127.0.0.1',
8383
'database' => '0',
8484
'port' => '6379'
8585
],
8686
],
8787
'page_cache' => [
88-
'backend' => 'Cm_Cache_Backend_Redis',
88+
'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis',
8989
'backend_options' => [
9090
'server' => '127.0.0.1',
9191
'port' => '6379',
@@ -126,7 +126,7 @@ Please note that keys should include the database prefix, e.g. if database prefi
126126
'frontend' => [
127127
'default' => [
128128
'id_prefix' => '061_',
129-
'backend' => 'Cm_Cache_Backend_Redis',
129+
'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis',
130130
'backend_options' => [
131131
'server' => 'redis',
132132
'database' => '0',
@@ -149,6 +149,17 @@ Please note that keys should include the database prefix, e.g. if database prefi
149149
]
150150
```
151151

152+
In case you are using the preload feature with the L2 cache, do not forget to add the ':hash' suffix to your keys, since L2 cache only transfers the hash of the data, not the data itself:
153+
154+
```php
155+
'preload_keys' => [
156+
'061_EAV_ENTITY_TYPES:hash',
157+
'061_GLOBAL_PLUGIN_LIST:hash',
158+
'061_DB_IS_UP_TO_DATE:hash',
159+
'061_SYSTEM_DEFAULT:hash',
160+
],
161+
```
162+
152163
## Parallel generation
153164

154165
Starting with the 2.4.0 release, we introduced the `allow_parallel_generation` option for the users that want to eliminate waitings for locks.

0 commit comments

Comments
 (0)