feat: Cluster mode support
- NewConnectionDialog: cluster checkbox - connection.ts: use Redis.Cluster() when cluster is enabled - i18n keys for cluster (zh-CN + en)
This commit is contained in:
@@ -97,6 +97,7 @@ export const useConnectionStore = defineStore('connection', () => {
|
||||
sentinelPort: conn.sentinelPort,
|
||||
sentinelMasterName: conn.sentinelMasterName,
|
||||
sentinelNodePassword: conn.sentinelNodePassword,
|
||||
cluster: conn.cluster,
|
||||
sshEnabled: conn.sshEnabled,
|
||||
sshHost: conn.sshHost,
|
||||
sshPort: conn.sshPort,
|
||||
@@ -168,6 +169,7 @@ export const useConnectionStore = defineStore('connection', () => {
|
||||
tlsCaPath?: string; tlsCertPath?: string; tlsKeyPath?: string; tlsRejectUnauthorized?: boolean
|
||||
sentinelEnabled?: boolean; sentinelHost?: string; sentinelPort?: number
|
||||
sentinelMasterName?: string; sentinelNodePassword?: string
|
||||
cluster?: boolean
|
||||
sshEnabled?: boolean; sshHost?: string; sshPort?: number; sshUsername?: string
|
||||
sshPassword?: string; sshPrivateKeyPath?: string; sshPassphrase?: string
|
||||
}): Promise<{ success: boolean; error?: string }> {
|
||||
@@ -191,6 +193,7 @@ export const useConnectionStore = defineStore('connection', () => {
|
||||
sentinelPort: opts.sentinelPort,
|
||||
sentinelMasterName: opts.sentinelMasterName,
|
||||
sentinelNodePassword: opts.sentinelNodePassword,
|
||||
cluster: opts.cluster,
|
||||
sshEnabled: opts.sshEnabled,
|
||||
sshHost: opts.sshHost,
|
||||
sshPort: opts.sshPort,
|
||||
|
||||
Reference in New Issue
Block a user