117d83bd95
This PR was merged into the 3.1-dev branch.
Discussion
----------
[Cache] Hash using B64+MD5 in FilesystemAdapter
| Q | A
| ------------- | ---
| Branch | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | no
| Fixed tickets | -
| License | MIT
| Doc PR | -
Using MD5+B64 is good enough to avoid any hash collision, even on case-insensitive filesystems.
On Windows where the total path length is limited, this saves 44 chars worth.
Even if collisions are extremely unlikely, they are detected by adding then comparing the raw key to saved payloads. This also has the added benefit of easing debugging/grepping the cached items on the filesystem.
Commits
-------
|
||
---|---|---|
.. | ||
Adapter | ||
Exception | ||
Tests/Adapter | ||
.gitignore | ||
CacheItem.php | ||
composer.json | ||
LICENSE | ||
phpunit.xml.dist | ||
README.md |
Symfony PSR-6 implementation for caching
This component provides a strict PSR-6
implementation for adding cache to your applications. It is designed to have a
low overhead so that caching is fastest. It ships with a few caching adapters
for the most widespread and suited to caching backends. It also provides a
doctrine/cache
proxy adapter to cover more advanced caching needs and a proxy
adapter for greater interoperability between PSR-6 implementations.