shlink/config/autoload/redis.global.php

23 lines
515 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
use function Shlinkio\Shlink\Config\env;
return (static function (): array {
$redisServers = env('REDIS_SERVERS');
2022-01-01 20:40:48 +03:00
return match ($redisServers) {
null => [],
default => [
'cache' => [
'default_lifetime' => 86400, // 24h
'redis' => [
'servers' => $redisServers,
'sentinel_service' => env('REDIS_SENTINEL_SERVICE'),
],
],
],
};
})();