memcache icon indicating copy to clipboard operation
memcache copied to clipboard

Lifetime does not work.

Open electic opened this issue 6 years ago • 1 comments

Setting the lifetime in the connection settings as so:

this.memcacheClient = new memcacheClient({ server: { server: connectStr, maxConnections: 150 }, lifetime: 0 })

or

this.memcacheClient.set(key, digest, { lifetime: 0, noreply: true });

seems to have no effect.

electic avatar Sep 30 '19 03:09 electic

@electic, try using lifetime: "0". The number 0 evaluates to false when creating the msg to send to memcached, thus rendering in using the default lifetime of 60 seconds... Other lifetimes works as expected 🤷‍♂️

frvi avatar Jun 02 '20 03:06 frvi