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

feat: introduce StorageItem::setItems for CacheItemPoolDecorator::commit #57

Merged

Conversation

boesing
Copy link
Member

@boesing boesing commented Dec 15, 2020

Q A
BC Break no
New Feature yes
RFC yes

Description

Relates to #56

…commit`

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing force-pushed the feature/cache-item-pool-decorator-set-items branch from 816bed1 to 1808acf Compare January 12, 2021 20:05
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@boesing boesing added this to the 3.0.0 milestone Jan 12, 2021
}
$notSavedItems = [];
foreach ($groupedByTtl as $keyValuePairs) {
$itemTtl = current($keyValuePairs)->getTtl();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could use groupedByTtl key here aswell.
But as null is an invalid array-key, I'd prefer not to have an additional if here.

@boesing boesing merged commit 199862b into laminas:3.0.x Feb 25, 2021
@boesing boesing deleted the feature/cache-item-pool-decorator-set-items branch February 25, 2021 10:05
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.

CacheItemPoolDecorator::commit could use StorageInterface::setItems for items with same TTL
2 participants