[Discussion][Entrance] Simple Cache PSR

108 views
Skip to first unread message

Georges L.

unread,
Jun 14, 2016, 2:02:47 PM6/14/16
to PHP Framework Interoperability Group
Hello PSR folks,
I just saw this tread:  https://groups.google.com/forum/#!topic/php-fig/vyQTKHS6pJ8

I have a question: What about the psr6 ?
Is this one a kind of "light psr6" ?
I just  spend a lot of time to implement the psr6 in the v5 of phpFastCache, and i am a bit worry about this PSR.

Regards,
Georges.

Robert Hafner

unread,
Jun 14, 2016, 3:33:39 PM6/14/16
to php...@googlegroups.com

It should be trivial to make a PSR-6 to PSR-Simple-Cache adaptor- like 20 minutes of work trivial. I personally think supporting PSR-6 (especially if we write out the extensions for Namespacing, Stacks, and Tags like we had originally planned) is the best bet for caching libraries to start, since from there it should be easy to branch out to anything else but some of these “simple” implementations have aspects to them that don’t make them easy to translate into other systems.

Rob


--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/bad7b8cd-65f7-43dd-9dec-3c05b385097c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Larry Garfield

unread,
Jun 14, 2016, 5:17:36 PM6/14/16
to php...@googlegroups.com
When last I looked at it, the simple-cache proposal included a PSR-6 adapter.  That should make it even less than 20 minutes. :-)  (Although I'd favor moving that out to the cache-utils library rather than the spec proper.)

For my part, I see simple-cache as a PSR-6 adapter to simplify the common cases in ways that are less extensible (a key goal for PSR-6) but more fire-and-forget for users (which was secondary for PSR-6).  So no, I wouldn't worry about any lost time investment.

--Larry Garfield


On 06/14/2016 02:33 PM, Robert Hafner wrote:

Cees-Jan Kiewiet

unread,
Jun 18, 2016, 8:21:59 AM6/18/16
to php...@googlegroups.com
+1 ReactPHP

--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages