mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-30 19:36:40 +03:00
21 lines
472 B
PHP
21 lines
472 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use function Shlinkio\Shlink\Common\env;
|
|
|
|
return (static function (): array {
|
|
$redisServers = env('REDIS_SERVERS');
|
|
|
|
return match (true) {
|
|
$redisServers === null => [],
|
|
default => [
|
|
'cache' => [
|
|
'redis' => [
|
|
'servers' => $redisServers,
|
|
'sentinel_service' => env('REDIS_SENTINEL_SERVICE'),
|
|
],
|
|
],
|
|
],
|
|
};
|
|
})();
|