Commit Graph

562 Commits

Author SHA1 Message Date
Fabien Potencier
117d83bd95 minor #18085 [Cache] Hash using B64+MD5 in FilesystemAdapter (nicolas-grekas)
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
-------

e96bb10 [Cache] Hash using B64+MD5 in FilesystemAdapter
2016-03-10 17:37:34 +01:00
Nicolas Grekas
5068f8751a [Cache] Add namespace handling to all adapters 2016-03-10 10:26:34 +01:00
Nicolas Grekas
e96bb10af4 [Cache] Hash using B64+MD5 in FilesystemAdapter 2016-03-10 09:59:31 +01:00
Nicolas Grekas
e6f21f999e [Cache] Count cache hits/misses in ProxyAdapter 2016-03-04 10:23:38 +01:00
Nicolas Grekas
e5d6db5c69 [Cache] Add FilesystemAdapter 2016-02-13 10:15:46 +01:00
Nicolas Grekas
80f3410da9 [Cache] Skip transient test on Windows 2016-02-08 14:03:54 +01:00
Nicolas Grekas
064ec0b578 [Cache] Fix expiries handling 2016-02-08 08:22:02 +01:00
Nicolas Grekas
8605417b55 [Cache] Don't clone, serialize 2016-02-03 09:37:11 +01:00
Nicolas Grekas
d21fab0d0b [Cache] Handle and log errors properly 2016-01-25 20:18:55 +01:00
Aurimas Niekis
367e784f25 [Cache] Use generator in ArrayAdapter 2016-01-25 15:49:11 +01:00
Nicolas Grekas
0ba851abeb [Cache] Allow and use generators in AbstractAdapter 2016-01-20 10:11:05 +01:00
Nicolas Grekas
91e482ae8e [Cache] Symfony PSR-6 implementation 2016-01-19 08:02:17 +01:00