Skip to content

Commit

Permalink
Cache: md5 replaced with xxHash
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 18, 2024
1 parent 8034ee0 commit ea335de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Caching/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public function start($key): ?OutputHelper
*/
protected function generateKey($key): string
{
return $this->namespace . md5(is_scalar($key) ? (string) $key : serialize($key));
return $this->namespace . hash('xxh128', is_scalar($key) ? (string) $key : serialize($key));
}


Expand Down

0 comments on commit ea335de

Please sign in to comment.