96bc17aa10
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
9 lines
225 B
TypeScript
9 lines
225 B
TypeScript
import * as redis from 'redis';
|
|
import config from '../config';
|
|
|
|
export default config.redis.map(({ host, port, pass }) => {
|
|
return redis.createClient(port, host, {
|
|
auth_pass: pass.getOrElse(null)
|
|
});
|
|
}).getOrElse(null);
|