Skip to content

Commit

Permalink
Allow capital letters in cache keys. (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
midnightLuke committed May 3, 2024
1 parent 495253c commit 6507b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/Pool/AbstractCachePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract class AbstractCachePool implements CacheItemPoolInterface

protected function checkKey(mixed $key)
{
if (!is_string($key) || preg_match('/^[a-z0-9-._]+$/', $key) === 0 || strlen($key) > 128) {
if (!is_string($key) || preg_match('/^[A-Za-z0-9-._]+$/', $key) === 0 || strlen($key) > 128) {
throw new InvalidArgumentException();
}
}
Expand Down

0 comments on commit 6507b1b

Please sign in to comment.