Skip to content

Use PSR6 cache - #404

Merged
cursedcoder merged 5 commits into
KnpLabs:masterfrom
Nyholm:cache
Jul 29, 2016
Merged

cursedcoder merged 5 commits into
KnpLabs:masterfrom
Nyholm:cache

Conversation

@Nyholm

@Nyholm Nyholm commented Jul 29, 2016

Copy link
Copy Markdown
Collaborator

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.

Comment thread lib/Github/Client.php Outdated
public function useCache(CacheItemPoolInterface $cachePool)
public function addCache(CacheItemPoolInterface $cachePool)
{
$this->removePlugin(Plugin\CachePlugin::class);

Copy link
Copy Markdown
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
Copy Markdown
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

Nyholm commented Jul 29, 2016

Copy link
Copy Markdown
Collaborator Author

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

Comment thread composer.json Outdated
@@ -18,10 +18,13 @@
],
"require": {
"php": "^5.5|^7.0",

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Looks good to go. 👍

@Nyholm

Nyholm commented Jul 29, 2016

Copy link
Copy Markdown
Collaborator Author

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