(config: any)
| 6 | const ParsePubSub = {}; |
| 7 | |
| 8 | function useRedis(config: any): boolean { |
| 9 | const redisURL = config.redisURL; |
| 10 | return typeof redisURL !== 'undefined' && redisURL !== ''; |
| 11 | } |
| 12 | |
| 13 | ParsePubSub.createPublisher = function (config: any): any { |
| 14 | if (useRedis(config)) { |