Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSR-6 maximum cache key length validation #177

Conversation

boesing
Copy link
Member

@boesing boesing commented Nov 13, 2021

Q A
Documentation yes
Bugfix no
BC Break yes
New Feature yes

Description

This PR adds the maximum cache key length validation feature which was already part of the PSR-16 SimpleCacheDecorator.
Since both PSR-6 and PSR-16 have the same requirements regarding cache key length, the logic was extract to a dedicated (internal) MaximumKeyLength-Trait.

Since this validation was not part of the CacheItemPoolDecorator before, this is supposed to be a BC break.


Besides this, I've also marked the Laminas\Cache\Psr\SerializationTrait as internal.


Fixes #156

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…item pool decorator

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…d PSR-16 decorators

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…tion of v3

This also provides breaking changes information which belong to internal code which should not affect upstream projects.

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
… a camel cased property according to codestyle

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing merged commit a9055df into laminas:3.0.x Nov 13, 2021
@boesing boesing deleted the feature/psr-6-maximum-cache-key-length-validation branch November 13, 2021 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PSR-6 CacheItemPoolDecorator does not validate the maximum cache key length
1 participant