diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-07 11:20:14 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-07 11:20:14 +0900 |
| commit | ff6d9d28604d173b57bdb26b94ccd16bd0f4c4ba (patch) | |
| tree | 7d608de794ce10af14f954d753ce2d86501ca5c7 /packages/backend/src/redis.ts | |
| parent | perf(backend): reduce db query (diff) | |
| download | misskey-ff6d9d28604d173b57bdb26b94ccd16bd0f4c4ba.tar.gz misskey-ff6d9d28604d173b57bdb26b94ccd16bd0f4c4ba.tar.bz2 misskey-ff6d9d28604d173b57bdb26b94ccd16bd0f4c4ba.zip | |
feat(backend): イベント用Redisを別サーバーに分離できるように
Diffstat (limited to 'packages/backend/src/redis.ts')
| -rw-r--r-- | packages/backend/src/redis.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/packages/backend/src/redis.ts b/packages/backend/src/redis.ts deleted file mode 100644 index 690f4715dd..0000000000 --- a/packages/backend/src/redis.ts +++ /dev/null @@ -1,13 +0,0 @@ -import Redis from 'ioredis'; -import { Config } from '@/config.js'; - -export function createRedisConnection(config: Config): Redis.Redis { - return new Redis({ - port: config.redis.port, - host: config.redis.host, - family: config.redis.family == null ? 0 : config.redis.family, - password: config.redis.pass, - keyPrefix: `${config.redis.prefix}:`, - db: config.redis.db ?? 0, - }); -} |