mirror of
https://github.com/zyachel/libremdb.git
synced 2024-12-06 19:26:47 +01:00
12 lines
202 B
TypeScript
12 lines
202 B
TypeScript
import Redis from 'ioredis'
|
|
|
|
const redisUrl = process.env.REDIS_URL
|
|
|
|
if (!redisUrl) {
|
|
throw 'Please set the REDIS_URL environment variable.'
|
|
}
|
|
|
|
const redis = new Redis(redisUrl)
|
|
|
|
export default redis
|