boring.tools-poc/apps/api/src/utils/redis.ts
Lars Hampe 501e75b420
Some checks failed
Build and Push Docker Image / build (push) Blocked by required conditions
Build and Push Docker Image / tests (push) Has been cancelled
ci: add port and debug log
2024-11-05 15:51:13 +01:00

12 lines
275 B
TypeScript

import { createClient } from 'redis'
export const redis = createClient({
password: import.meta.env.REDIS_PASSWORD,
url: import.meta.env.REDIS_URL,
})
console.log(import.meta.env)
redis.on('error', (err) => console.log('Redis Client Error', err))
await redis.connect()