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

Make namespace setter persist across connections #172

Merged
merged 1 commit into from
Oct 3, 2016

Conversation

dylanahsmith
Copy link
Collaborator

Memcached::Client#namespace= only sets the prefix on the connection, but didn't update the @prefix instance variable on Memcached::Client so the prefix would be lost when the connection is reset.

Setting the @prefix instance variable avoids that problem. I also thought it makes more sense to return that value for the Memcached::Client#namespace getter.

@arthurnn arthurnn merged commit 42e30b7 into arthurnn:master Oct 3, 2016
@arthurnn
Copy link
Owner

arthurnn commented Oct 3, 2016

thanks ❤️

@dylanahsmith dylanahsmith deleted the namespace-after-reset branch October 3, 2016 01:12
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

Successfully merging this pull request may close these issues.

2 participants