<?php

namespace Spiral\RoadRunner\Console\Configuration\Section;

final class Broadcast extends AbstractSection
{
    const NAME = 'broadcast';

    public function render()
    {
        return [
            self::NAME => [
                'default' => [
                    'driver' => 'memory',
                    'config' => []
                ],
//                'default-redis' => [
//                    'driver' => 'redis',
//                    'config' => [
//                        'addrs' => [
//                            'localhost:6379'
//                        ],
//                        'master_name' => '',
//                        'username' => '',
//                        'password' => '',
//                        'db' => 0,
//                        'sentinel_password' => '',
//                        'route_by_latency' => false,
//                        'route_randomly' => false,
//                        'dial_timeout' => 0,
//                        'max_retries' => 1,
//                        'min_retry_backoff' => 0,
//                        'max_retry_backoff' => 0,
//                        'pool_size' => 0,
//                        'min_idle_conns' => 0,
//                        'max_conn_age' => 0,
//                        'read_timeout' => 0,
//                        'write_timeout' => 0,
//                        'pool_timeout' => 0,
//                        'idle_timeout' => 0,
//                        'idle_check_freq' => 0,
//                        'read_only' => false
//                    ]
//                ]
            ]
        ];
    }

    public static function getShortName()
    {
        return self::NAME;
    }
}
