소스 검색

Allows configuring the host and port of a redis server. Defaults to 127.0.0.1 and 6379

Shane Holland 7 년 전
부모
커밋
08738b647e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      server/redis.js

+ 2 - 2
server/redis.js

@@ -3,8 +3,8 @@ const redis = require('redis');
 const config = require('./config');
 
 const client = redis.createClient(
-  config.REDIS_PORT? config.REDIS_PORT : 6379,
-  config.REDIS_HOST? config.REDIS_HOST : '127.0.0.1'
+  config.REDIS_PORT ? config.REDIS_PORT : 6379,
+  config.REDIS_HOST ? config.REDIS_HOST : '127.0.0.1'
 );
 
 exports.get = promisify(client.get).bind(client);