适配Redis集群的参数

This commit is contained in:
pqcqaq 2025-01-16 14:07:36 +08:00
parent d4b39afc8a
commit 265cbb8688
4 changed files with 21 additions and 0 deletions

View File

@ -2,4 +2,5 @@ export type ClusterInfo = {
usingCluster: boolean;
instanceId?: number;
instanceCount?: number;
enableRedis?: boolean;
};

View File

@ -3,6 +3,14 @@ import { EntityDict as BaseEntityDict } from "../base-app-domain";
import { AttrUpdateMatrix } from './EntityDesc';
import { ActionDefDict } from './Action';
import { StyleDict } from './Style';
/**
* redis连接信息Redis集群
*/
export type RedisConfiguration = {
host: string;
port: number;
password?: string;
};
/**
*
*/
@ -17,6 +25,7 @@ export type ServerConfiguration = {
connectionLimit: number;
charset: "utf8mb4_general_ci";
};
redis?: RedisConfiguration | RedisConfiguration[];
workDir: {
path: string;
};

View File

@ -2,4 +2,5 @@ export type ClusterInfo = {
usingCluster: boolean;
instanceId?: number;
instanceCount?: number;
enableRedis?: boolean;
};

View File

@ -5,6 +5,15 @@ import { AttrUpdateMatrix } from './EntityDesc';
import { ActionDefDict } from './Action';
import { StyleDict } from './Style';
/**
* redis连接信息Redis集群
*/
export type RedisConfiguration = {
host: string;
port: number;
password?: string;
};
/**
*
*/
@ -19,6 +28,7 @@ export type ServerConfiguration = {
connectionLimit: number;
charset: "utf8mb4_general_ci",
},
redis?: RedisConfiguration | RedisConfiguration[];
workDir: {
path: string;
},