<?php

/**
 * RedisConfig.php
 * redis服务器信息配置类 ，game 继承这个类，配置ip等信息
 * Created On 2021/12/30
 * @author yuanb yuanbo0x@gmail.com
 */

namespace Framework\Define;

abstract class DBDefine
{
    public const MODEL_SINGLE = 1;

    public const MODEL_CLUSTER  = 2;

    abstract public function getRedisLinkInfo($id): ?RedisLinkDefine;

    abstract public function getTypeByTable(string $table): int;

    abstract public function getDBLogicName(string $logic): string;
}
