초기 PM 소스 전체 업로드
This commit is contained in:
commit
4e33c9a02a
1769 files changed
+377797
No files matched your search
@@ -0,0 +1,18 @@
|
||||
const Redis = require('ioredis');
|
||||
require('dotenv').config();
|
||||
|
||||
const redisConnection = new Redis({
|
||||
host: process.env.REDIS_HOST,
|
||||
port: +process.env.REDIS_PORT,
|
||||
maxRetriesPerRequest: null,
|
||||
password: process.env.REDIS_PASSWORD
|
||||
// tls:{
|
||||
// }
|
||||
});
|
||||
|
||||
// await redisConnection.del('bull:convert-pdf:id');
|
||||
|
||||
redisConnection.on('connect', () => console.log('✔️ Redis connected'));
|
||||
redisConnection.on('error', (err) => console.error('❌ Redis error', err));
|
||||
|
||||
module.exports = { redisConnection };
|
||||
Reference in new issue
Block a user