connect-memjs
Advanced tools
Comparing version 0.0.9 to 0.1.0
@@ -56,15 +56,19 @@ /*! | ||
var servers = null; | ||
if (options.servers) { | ||
servers = options.servers.join(','); | ||
} | ||
if (!options.client) { | ||
var servers = null; | ||
if (options.servers) { | ||
servers = options.servers.join(','); | ||
} | ||
this.debug = options.debug || false; | ||
this.debug = options.debug || false; | ||
if (options.prefix) { | ||
this.prefix = options.prefix; | ||
if (options.prefix) { | ||
this.prefix = options.prefix; | ||
} | ||
options.client = memjs.Client.create(servers, options); | ||
log("memjs initialized for servers: " + servers); | ||
} | ||
this.client = new memjs.Client.create(servers, options) | ||
log("memjs initialized for servers: " + servers); | ||
this.client = options.client; | ||
@@ -71,0 +75,0 @@ //this.client.on("issue", function(issue) { |
{ | ||
"name": "connect-memjs" | ||
, "version": "0.0.9" | ||
, "version": "0.1.0" | ||
, "description": "Memcached session store for Connect backed by memjs" | ||
@@ -5,0 +5,0 @@ , "keywords": ["memcached", "connection", "session", "store", "cache"] |
18323
497