-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update taggable cache and tests #4
Update taggable cache and tests #4
Conversation
Thank you for this PR. |
Current coverage is
|
Hey @Nyholm so i should remove the Feature | Supported table? |
Yeah, we have that table on www.php-cache.com instead. |
Okay, so i can change it on all repositories? the composer.json info need to be removed too? And dont merge this, need to squash it |
That would be awesome. Aslo, @aequasi is about to update the URL to the issues, see: php-cache/issues#24 I think that you can use the new URL if you are about to change all repos. |
@@ -4,8 +4,28 @@ | |||
This is a void implementation of PSR-6. Other names for this adapter could be Blackhole or Null. This |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to include the badges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And
This is a PSR-6 cache implementation for Redis. It is a part of the PHP Cache organisation. To read about features like tagging and hierarchy support please read the shared documentation at www.php-cache.com.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Nyholm is it okay it they all flat-square and come from shields.io?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested Shields.io just now. It is way slow and seams to fail.
I would suggest to copy from the redis adapter and make a search replace.
[![Latest Stable Version](https://poser.pugx.org/cache/redis-adapter/v/stable)](https://packagist.org/packages/cache/redis-adapter) [![codecov.io](https://codecov.io/github/php-cache/redis-adapter/coverage.svg?branch=master)](https://codecov.io/github/php-cache/redis-adapter?branch=master) [![Build Status](https://travis-ci.org/php-cache/redis-adapter.svg?branch=master)](https://travis-ci.org/php-cache/redis-adapter) [![Total Downloads](https://poser.pugx.org/cache/redis-adapter/downloads)](https://packagist.org/packages/cache/redis-adapter) [![Monthly Downloads](https://poser.pugx.org/cache/redis-adapter/d/monthly.png)](https://packagist.org/packages/cache/redis-adapter) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
Okay, i will do it today :) |
You are awesome. Thanks! |
@@ -23,6 +23,11 @@ class IntegrationPoolTest extends BaseTest | |||
'testHasItem' => 'Void adapter does not save,', | |||
'testDeleteItems' => 'Void adapter does not save,', | |||
'testSave' => 'Void adapter does not save,', | |||
'testSaveWithoutExpire' => 'Void adapter does not save,', | |||
'testDataTypeFloat' => 'Void adapter does only output boolean,', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Void adapter only outputs boolean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for the other 3
fd7d9d7
to
2640e83
Compare
@@ -23,6 +23,11 @@ class IntegrationPoolTest extends BaseTest | |||
'testHasItem' => 'Void adapter does not save,', | |||
'testDeleteItems' => 'Void adapter does not save,', | |||
'testSave' => 'Void adapter does not save,', | |||
'testSaveWithoutExpire' => 'Void adapter does not save,', | |||
'testDataTypeFloat' => 'Void adapter only output boolean,', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Void adapter only outputs boolean
Missed the s
in outputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry :)
If you like to. But there is some work to that. Examples: php-cache/apc-adapter@9200e21 and php-cache/filesystem-adapter@b3444f9 |
@@ -30,12 +30,12 @@ | |||
"php": "^5.5|^7.0", | |||
"psr/cache": "1.0.0", | |||
"cache/adapter-common": "^0.1", | |||
"cache/taggable-cache": "^0.2" | |||
"cache/taggable-cache": "^0.2|^0.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use tagging ^0.3
and drop 0.2 completely.
@Nyholm done. |
c7ee3bb
to
fe70b3b
Compare
Update readme doc Update composer to use cache/integration-tests v0.7 not dev-master Skip more tests remove table fix spelling mistakes | update doc modified: README.md remove line modified: README.md Update readme doc Update composer to use cache/integration-tests v0.7 not dev-master Skip more tests remove table fix spelling mistakes | update doc modified: README.md remove line modified: README.md adding missing s modified: README.md update composer php-cache/issues/issues/23 next small upadtes modified: README.md modified: composer.json modified: tests/IntegrationPoolTest.php modified: README.md modified: composer.json
fe70b3b
to
c37d758
Compare
"cache/adapter-common": "^0.1", | ||
"cache/taggable-cache": "^0.2" | ||
"psr/cache": "~1.0", | ||
"cache/adapter-common": "^0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BC braking feature in 0.2 is that fetchObjectFormCache must return an array. You should do like this:
protected function fetchObjectFromCache($key)
{
return [false, null];
}
Update taggable cache and tests
No description provided.