Redis必須に
This commit is contained in:
parent
186d7bbfd9
commit
e369031a28
12 changed files with 48 additions and 111 deletions
|
@ -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;
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue