From 686d62036bc5e8a548968f5a3bf1a413d0006737 Mon Sep 17 00:00:00 2001 From: Raku Zeta Date: Wed, 24 Apr 2024 15:56:58 +0800 Subject: [PATCH] Migrate from connect-redis v6 --- benchmark/bench.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/benchmark/bench.js b/benchmark/bench.js index b30ad32..364a603 100644 --- a/benchmark/bench.js +++ b/benchmark/bench.js @@ -1,6 +1,6 @@ 'use strict' -const redisStoreFactory = require('connect-redis') +const RedisStore = require('connect-redis').default const Fastify = require('fastify') const Redis = require('ioredis') const fileStoreFactory = require('session-file-store') @@ -16,7 +16,6 @@ function createServer (sessionPlugin, cookiePlugin, storeType) { let store if (storeType === 'redis') { - const RedisStore = redisStoreFactory(sessionPlugin) if (!redisClient) { redisClient = new Redis() }