Skip to content

Commit 53eda8f

Browse files
committed
add getClients
1 parent cd9588b commit 53eda8f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/redis.service.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ export declare class RedisService {
44
private readonly redisClient;
55
constructor(redisClient: RedisClient);
66
getClient(name?: string): Redis.Redis;
7+
getClients(): Map<string, Redis.Redis>;
78
}

dist/redis.service.js

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ let RedisService = class RedisService {
2828
}
2929
return this.redisClient.clients.get(name);
3030
}
31+
getClients() {
32+
return this.redisClient.clients;
33+
}
3134
};
3235
RedisService = __decorate([
3336
common_1.Injectable(),

0 commit comments

Comments
 (0)