LiveQuery: Add options for Redis (#5584)
Closes: https://github.com/parse-community/parse-server/issues/5387
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import redis from 'redis';
|
||||
|
||||
function createPublisher({ redisURL }): any {
|
||||
return redis.createClient(redisURL, { no_ready_check: true });
|
||||
function createPublisher({ redisURL, redisOptions = {} }): any {
|
||||
redisOptions.no_ready_check = true;
|
||||
return redis.createClient(redisURL, redisOptions);
|
||||
}
|
||||
|
||||
function createSubscriber({ redisURL }): any {
|
||||
return redis.createClient(redisURL, { no_ready_check: true });
|
||||
function createSubscriber({ redisURL, redisOptions = {} }): any {
|
||||
redisOptions.no_ready_check = true;
|
||||
return redis.createClient(redisURL, redisOptions);
|
||||
}
|
||||
|
||||
const RedisPubSub = {
|
||||
|
||||
Reference in New Issue
Block a user