<?php

declare(strict_types=1);

namespace Spiral\RoadRunner\Console\Configuration\Section;

final class Kv extends AbstractSection
{
    private const NAME = 'kv';

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

    public function render(): array
    {
        return [
            self::NAME => [
                'local' => [
                    'driver' => 'memory',
                    'config' => [
                        'interval' => 60,
                    ],
                ],
                //                'redis' => [
                //                    'driver' => 'redis',
                //                    'config' => [
                //                        'addrs' => [
                //                            'localhost:6379'
                //                        ]
                //                    ]
                //                ]
            ],
        ];
    }
}
