import { Redis } from "ioredis";
import { env } from "../config/env.js";

export const redisConnection = new Redis(env.REDIS_URL, {
  maxRetriesPerRequest: null
});

export async function closeRedisConnection() {
  await redisConnection.quit();
}
