league/simple-cache -- Package Proposal

35 views
Skip to first unread message

Kirill Lyubaev

unread,
Apr 16, 2017, 12:05:33 PM4/16/17
to thephpleague
Hello

I want to propose a package for implementing PSR-16 of "league/simple-cache"

ignace nyamagana butera

unread,
Apr 19, 2017, 5:12:00 AM4/19/17
to thephpleague
Hi Kirill,

Did you have a look at https://github.com/fruux/sabre-cache  This is also a PSR-16 implementation with more backends. The project is in need of a maintainer maybe talk to the owner.

Kirill Lyubaev

unread,
Apr 21, 2017, 11:09:32 AM4/21/17
to thephpleague
Hello!

Yes, it is also a PSR-16 implementation.
The main difference between `simple-cache` and `sabre-cache`:
- supports php:5.4;
- supports popular caching backends like Memcached and Redis out of the box;
- supports caching backends like SQL, Tarantool and Flysystem (WIP);
- supports `incement`, `decrement`, `add`, `replace` and `touch`
- syntactic sugar `pull`, `remeber` и `forever`
- Closure type for default value;
- events out of the box;
- PSR-2
- cache/integration-tests

среда, 19 апреля 2017 г., 12:12:00 UTC+3 пользователь ignace nyamagana butera написал:

ignace nyamagana butera

unread,
Apr 26, 2017, 10:37:35 AM4/26/17
to thephpleague
Hi Kirill,

Here's my remarks

- PHP5.4 is EOL
- Using the League namespace as the PSR-4 autoloader while the package has not yet been accepted is not a good idea.

Other than that, my advice was not to make a comparison to determine which is better rather to see if it wouldn't be beneficial for the PHP community to get the better of both packages (ie: try to get in touch with the creator of the other package to see if you can take over the library and improve it if needed.)

Phil Sturgeon

unread,
Apr 26, 2017, 11:54:07 AM4/26/17
to thephpleague
Hey Kirill! 

Thanks for stopping by. This certainly looks cool, and I love that you attributed existing projects that inspired this creation. 

In looking at the attribution though, I noticed that Scrapbook already has a psr/simple-cache interface.


Could you elaborate a bit on how yours differs from theirs? :) 

Regards,

Phil 
--
You received this message because you are subscribed to the Google Groups "thephpleague" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thephpleague...@googlegroups.com.
To post to this group, send email to thephp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thephpleague/497681ea-b93c-4158-b3d1-866a122d2ce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages