Add support for prefixed cache#51
Conversation
Codecov Report
@@ Coverage Diff @@
## master #51 +/- ##
==========================================
- Coverage 21.9% 21.52% -0.38%
==========================================
Files 35 36 +1
Lines 630 641 +11
==========================================
Hits 138 138
- Misses 492 503 +11
Continue to review full report at Codecov.
|
|
Hi, You code don't work for me : cache_adapter:
providers:
apcu:
factory: 'cache.factory.apcu'
aliases: ['cache.apcu']
apcu_prefixed:
factory: 'cache.factory.prefixed'
options:
service: "@cache.provider.apcu"
prefix: 'qanda'
```
If y delete the constraint, into PrefixedFactory, that work. |
|
@jewome62 Try now, during my tests I was bootstrapping the system without using YAML so my references were all objects already and the options resolver was explicitly requiring objects. I've removed that constraint and now the bundle is responsible for turning your service in to a reference. |
|
@iainmckay can you right tests for this? |
|
@prisis I did intend to do this but couldn't locate your test suite to add my tests. Can you point me to where it resides and I'll add my tests to it? |
|
you can find it her https://github.com/php-cache/adapter-bundle/tree/master/tests |
|
@prisis Correct me if I'm wrong but none of the other factories are tested here? It would be helpful to see existing tests for something like the ChainFactory which this PR is based on so I can fit tests in with your testing methodology. |
|
@Nyholm correct me if i'm wrong, but we have only a bundle test? @iainmckay we dont have test for the other components in this adapter ... we need wait for @Nyholm or @aequasi we i can merge this without tests |
|
@prisis Is there a way to get this reviewed? We're maintaining a fork which is less than ideal. |
|
I will have a look at this today. Sorry for the delay. |
|
Great, thanks :) |
This adds support for the prefixed cache.
Example: