Redisをオプションにしたり
This commit is contained in:
parent
57e93b9b4e
commit
1117ce4b54
7 changed files with 43 additions and 39 deletions
|
@ -1,10 +1,10 @@
|
|||
import * as redis from 'redis';
|
||||
import config from '../config';
|
||||
|
||||
export default redis.createClient(
|
||||
export default config.redis ? redis.createClient(
|
||||
config.redis.port,
|
||||
config.redis.host,
|
||||
{
|
||||
auth_pass: config.redis.pass
|
||||
}
|
||||
);
|
||||
) : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue