mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 21:16:43 -06:00
96bc17aa10
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
8 lines
225 B
TypeScript
8 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);
|