Unverified 提交 7333e87e authored 作者: Jeff Chan's avatar Jeff Chan 提交者: GitHub

Add method to get all redis client list

So that the names of the client no longer need to be hardcoded and can be defined in config file
上级 be5ca973
...@@ -18,4 +18,8 @@ export class RedisService { ...@@ -18,4 +18,8 @@ export class RedisService {
} }
return this.redisClient.clients.get(name) return this.redisClient.clients.get(name)
} }
}
\ No newline at end of file getClients(): Redis.Redis[] {
return this.redisClient.clients;
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论