feat: Upgrade Redis 3 to 4 (#8293)
BREAKING CHANGE: This release upgrades to Redis 4; if you are using the Redis cache adapter with Parse Server then this is a breaking change as the Redis client options have changed; see the [Redis migration guide](https://github.com/redis/node-redis/blob/redis%404.0.0/docs/v3-to-v4.md) for more details (#8293)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import redis from 'redis';
|
||||
import { createClient } from 'redis';
|
||||
|
||||
function createPublisher({ redisURL, redisOptions = {} }): any {
|
||||
redisOptions.no_ready_check = true;
|
||||
return redis.createClient(redisURL, redisOptions);
|
||||
return createClient(redisURL, redisOptions);
|
||||
}
|
||||
|
||||
function createSubscriber({ redisURL, redisOptions = {} }): any {
|
||||
redisOptions.no_ready_check = true;
|
||||
return redis.createClient(redisURL, redisOptions);
|
||||
return createClient(redisURL, redisOptions);
|
||||
}
|
||||
|
||||
const RedisPubSub = {
|
||||
|
||||
Reference in New Issue
Block a user