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:
@@ -87,9 +87,18 @@ class ParseServer {
|
||||
.performInitialization()
|
||||
.then(() => hooksController.load())
|
||||
.then(async () => {
|
||||
const startupPromises = [];
|
||||
if (schema) {
|
||||
await new DefinedSchemas(schema, this.config).execute();
|
||||
startupPromises.push(new DefinedSchemas(schema, this.config).execute());
|
||||
}
|
||||
if (
|
||||
options.cacheAdapter &&
|
||||
options.cacheAdapter.connect &&
|
||||
typeof options.cacheAdapter.connect === 'function'
|
||||
) {
|
||||
startupPromises.push(options.cacheAdapter.connect());
|
||||
}
|
||||
await Promise.all(startupPromises);
|
||||
if (serverStartComplete) {
|
||||
serverStartComplete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user