Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lifetime does not work. #8

Open
electic opened this issue Sep 30, 2019 · 1 comment
Open

Lifetime does not work. #8

electic opened this issue Sep 30, 2019 · 1 comment

Comments

@electic
Copy link

electic commented Sep 30, 2019

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.

@frvi
Copy link

frvi commented Jun 2, 2020

@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 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants