Comments (6)
When I was finalizing PSR-16 support, I found that this adapter couldn't be coerced into behaving in the way that PSR-16 expects, which is why no support was provided for it.
If you want similar functionality, you can create either a named or an anonymous class that directly implements the PSR-16 interface, and have each method be a no-op and/or return a default.
from zend-cache.
Wasn't intending to be rude, @nuxwin - should have put a 😄 after that! Honestly would love to see a PR to make this work properly.
from zend-cache.
In fact, both PSR6 and PSR16 caching wrappers are not compatible with the BlackHole adapter. This is a bit sad as for instance, in our application, we make use of the BlackHole adapter when we are in development mode... Since the BlackHole adapter is just something which will always return the boolean FALSE, I'm wondering why it couldn't just lie on the supported types. This would avoid requiring the serializer plugin and make it compatible with PSR* wrappers. What would be the side effect here since that adapter always return the boolean FALSE anyway?
from zend-cache.
@nuxwin If you can find a way to make it happen, I'd be happy to review a pull request! (I tried a number of approaches, but never found one that would pass tests.)
from zend-cache.
Don't be so rude (dixit your exclamation mark). I don't say you're wrong in any way ;) I just say I don't understand why you could not just lie on the adapter capabilities. Anyway, I turned to just disable read/write of the apcu adapter in development mode.
from zend-cache.
https://www.fastcompany.com/3036748/why-its-so-hard-to-detect-emotion-in-emails-and-texts ;-)
from zend-cache.
Related Issues (20)
- Why make Zend\Cache\Storage\Adapter\Filesystem only support string data types? HOT 2
- Add PHP 7.2 support, drop HHVM HOT 1
- ZF2 Memcached PHP7 backward incompatible change HOT 2
- Invalid prototype (PHP 7.2) HOT 10
- StorageFactory Not Reading "cache_dir" Setting HOT 2
- memcached doesn't work with plugin phpSerialize HOT 2
- When 2.8 will be released? HOT 10
- PSR-16 support: serialization using plugin HOT 2
- PSR-16 support: clear by namespace when appropriate HOT 1
- PSR-16 support: prevent concurrent regression when calling delete HOT 3
- ZendCache 2.8 sets $success on getItem if there is a null response HOT 1
- Missing docs about APCU storage HOT 1
- SimpleCacheDecorator and providesPerItemTtl leads undocumented behaviors HOT 4
- StorageInterface::hasItem issue with ext-redis 4.0.1+ HOT 1
- [ZF3] Remove StorageFactory and PatternFactory HOT 2
- Make it possible to decorate cache adapters with PSR6/PSR16 decorators through configuration HOT 1
- Typo in variable for ExtMongoDbResourceManager adapter makes passing db a no-op HOT 3
- SimpleCacheDecorator Cache gets deleted after creation
- Redis::delete is deprecated HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zend-cache.