-
Notifications
You must be signed in to change notification settings - Fork 35
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
Passing in a existing memcached client ignores the secret option #39
Comments
@danielb7390 Valid observation, the same applies to |
FYI I'm planning to add your case as a test, for this purpose I've migrated test "suite" from manual scripts to Jest. Next steps in progress. |
Thanks for the update! |
small update: working on merging this pr, which will also fix this issue along the way |
Version v2.0.0 should address this issue. In case you're using data encryption, remember to flush the session data before upgrading. |
I have a project that already has a memcached instance created, yet when adding
connect-memcached
, it will create a new instance of the client but i wanted to use the existing instanceTook a look at the code and i see i can pass in a
client
atMemcachedStore()
, but for some reason in case a client is passed the secret option is ignored:connect-memcached/lib/connect-memcached.js
Lines 32 to 53 in 5116ea3
Shouldn't the
if (options.secret)
block be outside theif (!options.client)
?The text was updated successfully, but these errors were encountered: