Skip to content

Commit f18ccc9

Browse files
authored
[FEATURE] Support username for authentication in Redis cache backend (#6156)
* [FEATURE] Support username for authentication in Redis cache backend Resolves: TYPO3-Documentation/Changelog-To-Doc#1399 Releases: main * [FEATURE] Support username for authentication in Redis cache backend Resolves: TYPO3-Documentation/Changelog-To-Doc#1399 Releases: main
1 parent 9ac04e4 commit f18ccc9

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

Documentation/ApiOverview/CachingFramework/Backends/Index.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,26 @@ Options for the redis caching backend
363363
is issued to one of them. Database numbers 0 and 1 are used and flushed by the Core unit tests
364364
and should not be used if possible.
365365

366+
.. confval:: username
367+
:name: caching-backend-redis-username
368+
:type: string
369+
370+
.. versionadded:: 14.0
371+
372+
Use this option to authenticate against Redis using both a username and a
373+
password:
374+
375+
.. literalinclude:: _redis_password.php
376+
:caption: config/system/additional.php
366377

367378
.. confval:: password
368379
:name: caching-backend-redis-password
369-
:type: string
380+
:type: string | array (deprecated)
381+
382+
.. deprecated:: 14.0
383+
Setting this configuration option with an array is deprecated
384+
and will be removed in 15.0. See `Deprecation: #107725 - Deprecate
385+
usage of array in password for authentication in Redis cache backend <https://docs.typo3.org/permalink/changelog:deprecation-107725-1760807740>`_
370386

371387
Password used to connect to the redis instance if the redis server needs authentication.
372388

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages']['backend']
4+
= \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class;
5+
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages']['options']
6+
= [
7+
'defaultLifetime' => 86400,
8+
'database' => 0,
9+
'hostname' => 'redis',
10+
'port' => 6379,
11+
'username' => 'redis',
12+
'password' => 'redis',
13+
];

0 commit comments

Comments
 (0)