适配Redis集群的参数
This commit is contained in:
parent
d4b39afc8a
commit
265cbb8688
|
|
@ -2,4 +2,5 @@ export type ClusterInfo = {
|
|||
usingCluster: boolean;
|
||||
instanceId?: number;
|
||||
instanceCount?: number;
|
||||
enableRedis?: boolean;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,4 +2,5 @@ export type ClusterInfo = {
|
|||
usingCluster: boolean;
|
||||
instanceId?: number;
|
||||
instanceCount?: number;
|
||||
enableRedis?: boolean;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue