Project

General

Profile

Feature #95172

Updated by Sebastian Michaelsen over 2 years ago

If you have multiple redis containers with replications you will want to read from one redis instance and write to the other. 
 At the moment, the TYPO3 redis caching backend doesn't support configuring separate connectivity configuration for read and write. 

 Suggestion: 

 The possibility to configure *one* connection should be kept as it is for simplicity and backwards compatibility. Additionally with the keys @read@ {{read}} and @write@ {{write}} that override individual options of the default connection. 

 <pre><code class="yaml"> 
 SYS: 
   caching: 
     cacheConfigurations: 
       extbase: 
         backend: '\TYPO3\CMS\Core\Cache\Backend\RedisBackend' 
         options: 
           defaultLifetime: 31536000 
           hostname: '%env(REDIS_SLAVE)%' 
           port: 6379 
           database: 0 
           write: 
             hostname: '%env(REDIS_MASTER)%' 
 </code></pre> 

Back