feat: 完成 redis 命令行模式功能

This commit is contained in:
ssongliu
2022-11-02 16:28:54 +08:00
committed by ssongliu
parent bc5b269691
commit b3bc8769b3
17 changed files with 2016 additions and 885 deletions

View File

@@ -105,41 +105,12 @@ export namespace Database {
}
// redis
export interface SearchRedisWithPage extends ReqPage {
redisName: string;
db: number;
}
export interface RedisBaseReq {
redisName: string;
db: number;
}
export interface RedisConfUpdate {
redisName: string;
db: number;
paramName: string;
value: string;
}
export interface RedisData {
redisName: string;
db: number;
key: string;
value: string;
type: string;
length: number;
expiration: number;
}
export interface RedisDataSet {
redisName: string;
db: number;
key: string;
value: string;
expiration: number;
}
export interface RedisDelBatch {
redisName: string;
db: number;
names: Array<string>;
}
export interface RedisStatus {
tcp_port: string;
uptime_in_days: string;
@@ -156,12 +127,14 @@ export namespace Database {
latest_fork_usec: string;
}
export interface RedisConf {
name: string;
timeout: number;
maxclients: number;
databases: number;
requirepass: string;
maxmemory: number;
}
export interface RedisPersistenceConf {
dir: string;
appendonly: string;
appendfsync: string;