Skip to content

Commit

Permalink
add getClients
Browse files Browse the repository at this point in the history
  • Loading branch information
skunight committed Jul 9, 2019
1 parent cd9588b commit 53eda8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/redis.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export declare class RedisService {
private readonly redisClient;
constructor(redisClient: RedisClient);
getClient(name?: string): Redis.Redis;
getClients(): Map<string, Redis.Redis>;
}
3 changes: 3 additions & 0 deletions dist/redis.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ let RedisService = class RedisService {
}
return this.redisClient.clients.get(name);
}
getClients() {
return this.redisClient.clients;
}
};
RedisService = __decorate([
common_1.Injectable(),
Expand Down

0 comments on commit 53eda8f

Please sign in to comment.