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 7206bac commit 45038c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/session.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import express from "express";
import RedisStore from "connect-redis";
import session from "express-session";
import redis from "redis";
import { createClient } from "redis";

import * as Config from "./config";

const SESSION_MAX_AGE_SECONDS = 12 * 60 * 60;

const getRedisClient = () => {
return redis.createClient({
return createClient({
url: Config.redis.uri,
username: Config.redis.username,
password: Config.redis.password,
Expand Down

0 comments on commit 45038c6

Please sign in to comment.