Authored by weiqingting

redis 调试

@@ -66,7 +66,7 @@ var apiCofig = { @@ -66,7 +66,7 @@ var apiCofig = {
66 }, 66 },
67 useToEntry:function(app){ 67 useToEntry:function(app){
68 if(process.env.NODE_ENV!="coding"){ 68 if(process.env.NODE_ENV!="coding"){
69 - session.store=new RedisStore({ 69 + session.store=new Redis({
70 port: 6379, 70 port: 6379,
71 host: 'localhost' 71 host: 'localhost'
72 }); 72 });
@@ -66,7 +66,7 @@ var apiCofig = { @@ -66,7 +66,7 @@ var apiCofig = {
66 }, 66 },
67 useToEntry:function(app){ 67 useToEntry:function(app){
68 if(process.env.NODE_ENV!="coding"){ 68 if(process.env.NODE_ENV!="coding"){
69 - session.store=new RedisStore({ 69 + session.store=new Redis({
70 port: 6379, 70 port: 6379,
71 host: 'localhost' 71 host: 'localhost'
72 }); 72 });