Skip to content

Commit

Permalink
Merge pull request #12 from infinityworks/GB-245
Browse files Browse the repository at this point in the history
[GB-245] Added psubscribe redis method
  • Loading branch information
ljones92 committed Jun 15, 2018
2 parents 4b58c2d + 5f76225 commit 4757e7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/connection/RedisConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ module.exports = (
return proxyPromise('subscribe', args);
};

RedisConnector.psubscribe = (...args) => {
if (infoLogsEnabled) {
const channels = args;
logger.info('cache.psubscribe', { channels });
}
return proxyPromise('psubscribe', args);
};

RedisConnector.listen = (event, callback) => {
if (infoLogsEnabled) {
logger.info('cache.listen', { event });
Expand Down

0 comments on commit 4757e7f

Please sign in to comment.