-
Notifications
You must be signed in to change notification settings - Fork 2.5k
blackhole cache storage adapter #4512
blackhole cache storage adapter #4512
Conversation
Just curious: How to use the blackhole adapter, when I need plugins in a real world application. How can I replace this with a blackhole adapter? |
@prolic What do you mean with "I need plugins"? Plugins exists to add functionalities (like the Applications should depend of a public (and well defined) API which will be the case here. If there is a very special case your application requires a behavior you should use the ... you need do remove the |
Thanks for your explanations. |
* Set options. | ||
* | ||
* @param array|Traversable|Adapter\AdapterOptions $options | ||
* @return StorageInterface Fluent interface |
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.
change to @return self
blackhole cache storage adapter
…ature/blackhole-cache-storage blackhole cache storage adapter
- trailing whitespace
This PR implements a black hole storage adapter (like in #4196) but doesn't extends
AbstractAdapter
so there is no overhead and it implements all interfaces to make it possible as a replacement in all cases.Because it doesn't extend
AbstractAdapter
it has no plugin system implemented and configuring plugins together with this adapter will result in an exception.