提交 53eda8f2 authored 作者: zzy's avatar zzy

add getClients

上级 cd9588b9
......@@ -4,4 +4,5 @@ export declare class RedisService {
private readonly redisClient;
constructor(redisClient: RedisClient);
getClient(name?: string): Redis.Redis;
getClients(): Map<string, Redis.Redis>;
}
......@@ -28,6 +28,9 @@ let RedisService = class RedisService {
}
return this.redisClient.clients.get(name);
}
getClients() {
return this.redisClient.clients;
}
};
RedisService = __decorate([
common_1.Injectable(),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论