Skip to content

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 ?

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
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.

4 participants