redis/phpredis support
how can we add redis support to l3d with proper configuration as cache backend?
If redis exists, this should work in drupal 8/9 project's settings.php:
if (file_exists('modules/contrib/redis/redis.info.yml') && extension_loaded('redis')) {
// Set Redis as the default backend for any cache bin not otherwise specified.
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['cache']['default'] = 'cache.backend.redis';
// Allow the services to work before the Redis module itself is enabled.
$settings['container_yamls'][] = 'modules/contrib/redis/redis.services.yml';