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

Normalize key before passing it to memcached #32925

Closed
wants to merge 1 commit into from
Closed

Conversation

CarlSchwan
Copy link
Member

No description provided.

@PVince81
Copy link
Member

would obsolete #28481 so we could also remove the hashing there if we're confident that it doesn't affect redis ?

if (version_compare(PHP_VERSION, '8.1.0') >= 0) {
return hash('xxh128', $key); // Very fast and provide very good collisions protection
} else {
return hash('md5', $key);
Copy link
Member

Choose a reason for hiding this comment

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

too many collisions. maybe only if indeed whitespace is included or the key is exceeds the length limit.

@CarlSchwan CarlSchwan closed this Jun 21, 2022
@skjnldsv skjnldsv deleted the normalize-key branch March 14, 2024 07:46
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