Skip to content

Use PSR6 cache #404

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

Merged
merged 5 commits into from
Jul 29, 2016
Merged

Use PSR6 cache #404

merged 5 commits into from
Jul 29, 2016

Conversation

Nyholm
Copy link
Collaborator

@Nyholm Nyholm commented Jul 29, 2016

This PR removes our caching layer an introduce PSR-6 cache instead.

(It feels great to make a PR like this. Remove 500 lines just to add 17) =)

This will fix #390

This is BC break so it should be done before we tag 2.0.

* @param CacheItemPoolInterface $cache
*/
public function useCache(CacheItemPoolInterface $cachePool)
public function addCache(CacheItemPoolInterface $cachePool)
{
$this->removePlugin(Plugin\CachePlugin::class);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe call the removeCache() method here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was just a 10 seconds slower than you. It is added now

@Nyholm
Copy link
Collaborator Author

Nyholm commented Jul 29, 2016

The removeCache() function will not work properly until #405 is merged.

@@ -18,10 +18,13 @@
],
"require": {
"php": "^5.5|^7.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

We can probs fix the indentation here. :)

@GrahamCampbell
Copy link
Contributor

Looks good to go. 👍

@Nyholm
Copy link
Collaborator Author

Nyholm commented Jul 29, 2016

Thank you for your reviews!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use PSR-6 cache
3 participants