支持配置选择使用的数据库

This commit is contained in:
2024-06-20 18:44:55 +08:00
parent e8b63fb863
commit 27e193a0ea
2 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,7 @@ func (o *OwnClient) GetRealClientWithError(instanceFlag string) (*redisClient.Cl
func (o *OwnClient) AddClient(instanceFlag string, instanceConfig *define.Options) error {
instance := redisClient.NewClient(&redisClient.Options{
DB: instanceConfig.DB,
Addr: instanceConfig.Addr,
ClientName: instanceConfig.ClientName,
Dialer: nil,