mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 07:13:09 +02:00
0a06eb27da
* enhance(backend): 設定ファイルでioredisの全てのオプションを指定可能に * yappa kousuru * fix * fix? * fix * Revert "fix" This reverts commit 227f19ff3afcbbd560b831493975206263a1a5a3. * fix
10 lines
235 B
JavaScript
10 lines
235 B
JavaScript
import Redis from 'ioredis';
|
|
import { loadConfig } from './built/config.js';
|
|
|
|
const config = loadConfig();
|
|
const redis = new Redis(config.redis);
|
|
|
|
redis.on('connect', () => redis.disconnect());
|
|
redis.on('error', (e) => {
|
|
throw e;
|
|
});
|