Skip to content

Commit

Permalink
Revert "BC-6040 Redis Packages Update for Server and legacy client (#…
Browse files Browse the repository at this point in the history
…3371)"

This reverts commit 1b5e782.
  • Loading branch information
virgilchiriac committed Jan 19, 2024
1 parent 61cba63 commit 9633d56
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 168 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const compression = require('compression');
const redis = require('redis');
const RedisStore = require('connect-redis').default;
const connectRedis = require('connect-redis');
const session = require('express-session');
const methodOverride = require('method-override');
const csurf = require('csurf');
Expand Down Expand Up @@ -123,10 +123,10 @@ let sessionStore;
const redisUrl = REDIS_URI;
if (redisUrl) {
logger.info(`Using Redis session store at '${redisUrl}'.`);
const RedisStore = connectRedis(session);
const client = redis.createClient({
url: redisUrl,
});
client.connect().catch((err) => logger.error(err));
sessionStore = new RedisStore({ client });
} else {
logger.info('Using in-memory session store.');
Expand Down
251 changes: 87 additions & 164 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"body-parser": "^1.19.0",
"ckeditor5-math": "^20.0.0",
"compression": "^1.6.2",
"connect-redis": "^7.1.0",
"connect-redis": "^4.0.3",
"cookie-parser": "~1.4.3",
"cross-env": "^7.0.3",
"csurf": "^1.10.0",
Expand Down Expand Up @@ -119,7 +119,7 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-sortable-hoc": "^1.11.0",
"redis": "^4.6.11",
"redis": "^3.1.2",
"request": "^2.79.0",
"request-promise": "^4.2.6",
"sanitize-html": "^2.6.1",
Expand Down

0 comments on commit 9633d56

Please sign in to comment.