Skip to content

Commit

Permalink
Migrate from connect-redis v6 (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaraku authored Apr 24, 2024
1 parent 4f8384e commit b42ab14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/bench.js
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -16,7 +16,6 @@ function createServer (sessionPlugin, cookiePlugin, storeType) {
let store

if (storeType === 'redis') {
const RedisStore = redisStoreFactory(sessionPlugin)
if (!redisClient) {
redisClient = new Redis()
}
Expand Down

0 comments on commit b42ab14

Please sign in to comment.