Redis必須に

This commit is contained in:
syuilo
2019-04-13 19:19:32 +09:00
parent 186d7bbfd9
commit e369031a28
12 changed files with 48 additions and 111 deletions

View File

@@ -1,7 +1,7 @@
import * as redis from 'redis';
import config from '../config';
export default config.redis ? redis.createClient(
export default redis.createClient(
config.redis.port,
config.redis.host,
{
@@ -9,4 +9,4 @@ export default config.redis ? redis.createClient(
prefix: config.redis.prefix,
db: config.redis.db || 0
}
) : null;
);