修复 Redis连接导出大小不统一写问题
This commit is contained in:
@@ -2,7 +2,7 @@ import Redis from 'ioredis';
|
|||||||
import config from '../../config';
|
import config from '../../config';
|
||||||
import Logger from '@lib/Logger/Logger';
|
import Logger from '@lib/Logger/Logger';
|
||||||
|
|
||||||
class RedisConnection {
|
class _RedisConnection {
|
||||||
private pool?: Redis
|
private pool?: Redis
|
||||||
private logger = new Logger('Redis')
|
private logger = new Logger('Redis')
|
||||||
|
|
||||||
@@ -39,6 +39,6 @@ class RedisConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const _redisConnection = new RedisConnection();
|
const _redisConnection = new _RedisConnection();
|
||||||
const redisConnection = _redisConnection.getPool();
|
const RedisConnection = _redisConnection.getPool();
|
||||||
export default redisConnection;
|
export default RedisConnection;
|
||||||
Reference in New Issue
Block a user