From 53eda8f2eba63a44912afbf33b5ac34a02a72e82 Mon Sep 17 00:00:00 2001 From: zzy Date: Tue, 9 Jul 2019 10:32:54 +0800 Subject: [PATCH] add getClients --- dist/redis.service.d.ts | 1 + dist/redis.service.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dist/redis.service.d.ts b/dist/redis.service.d.ts index c765335..54ce789 100644 --- a/dist/redis.service.d.ts +++ b/dist/redis.service.d.ts @@ -4,4 +4,5 @@ export declare class RedisService { private readonly redisClient; constructor(redisClient: RedisClient); getClient(name?: string): Redis.Redis; + getClients(): Map; } diff --git a/dist/redis.service.js b/dist/redis.service.js index 49186d4..5d0e146 100644 --- a/dist/redis.service.js +++ b/dist/redis.service.js @@ -28,6 +28,9 @@ let RedisService = class RedisService { } return this.redisClient.clients.get(name); } + getClients() { + return this.redisClient.clients; + } }; RedisService = __decorate([ common_1.Injectable(),