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

Return default from hash client #352

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

Pankrat
Copy link
Contributor

@Pankrat Pankrat commented Oct 4, 2021

When using HashClient with ignore_exc, get would always return
None if no server is available. The other clients return the default
value in this case.

Return the default value so HashClient behaves like the other
clients.

Fixes a variation of issue #350

When using `HashClient` with `ignore_exc`, `get` would always return
`None` if no server is available. The other clients return the default
value in this case.

Return the default value so `HashClient` behaves like the other
clients.

Fixes a variation of issue pinterest#350
@jparise jparise merged commit 25e38df into pinterest:master Oct 4, 2021
Pankrat added a commit to Pankrat/pymemcache that referenced this pull request Oct 5, 2021
jparise pushed a commit that referenced this pull request Feb 20, 2022
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.

3 participants