Giter VIP home page Giter VIP logo

Comments (6)

weierophinney avatar weierophinney commented on July 25, 2024 1

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.

weierophinney avatar weierophinney commented on July 25, 2024 1

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.

nuxwin avatar nuxwin commented on July 25, 2024

@weierophinney

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.

weierophinney avatar weierophinney commented on July 25, 2024

@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.

nuxwin avatar nuxwin commented on July 25, 2024

@weierophinney

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.

dol avatar dol commented on July 25, 2024

https://www.fastcompany.com/3036748/why-its-so-hard-to-detect-emotion-in-emails-and-texts ;-)

from zend-cache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.