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

Fix key_prefix issue with stats and cache_memlimit #433

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

jogo
Copy link
Contributor

@jogo jogo commented Oct 13, 2022

Add integration tests to reproduce the issue and add an argument to _fetch_cmd to skip the key prefix logic as needed.

Closes #430

Copy link
Collaborator

@jparise jparise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than adding a Boolean flag, I wonder if the code would be nicer if we just passed the prefix (or lack of one) as an explicit argument to these functions that need it.

Add integration tests to reproduce the issue and add an argument to
_fetch_cmd to skip the key prefix logic as needed.

Closes pinterest#430
@jogo jogo merged commit 337fcf8 into pinterest:master Oct 17, 2022
@jogo jogo deleted the prefix branch October 17, 2022 16:39
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.

pymemcache.client.base.Client.stats(*args) raises exception when Client.key_prefix is set, and arg(s) used.
2 participants