Skip to content

Commit

Permalink
IS-2765: Bruke felles Aiven-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Nov 12, 2024
1 parent 0ed81ad commit 44eddde
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@navikt/navspa": "6.0.1",
"@tanstack/react-query": "5.51.24",
"@tanstack/react-query-devtools": "5.51.24",
"@types/connect-redis": "0.0.18",
"@types/express": "4.17.21",
"@types/express-http-proxy": "1.6.3",
"@types/express-session": "1.18.0",
Expand Down
4 changes: 1 addition & 3 deletions server/session.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import express from "express";
import connectRedis from "connect-redis";
import RedisStore from "connect-redis";
import session from "express-session";
import redis from "redis";

Expand All @@ -10,8 +10,6 @@ const SESSION_MAX_AGE_SECONDS = 12 * 60 * 60;
const getRedisStore = () => {
if (Config.isDev) return undefined;

const RedisStore = connectRedis(session);

const redisClient = redis.createClient({
url: Config.redis.uri,
socket: {
Expand Down

0 comments on commit 44eddde

Please sign in to comment.