Эх сурвалжийг харах

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

Shane Holland 7 жил өмнө
parent
commit
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);