symfony1 icon indicating copy to clipboard operation
symfony1 copied to clipboard

Changes for using memcached class (instad of old memcache)

Open JohannesTyra opened this issue 7 years ago • 11 comments

The old memache is not longer maintained. In php 7.2 the package is not longer available.

Using the memcached class & updated the doctrine cache (memcache) also.

JohannesTyra avatar Sep 24 '18 09:09 JohannesTyra

Hello @JohannesTyra ,

I suggest to create a dedicated sfMemcachedCache class in order to not introduce back compatibility breaks.

And I invite you to check existing implementation on Symfony4. The goal for sure is to not re-write the wheel.

Even more create a PSR-6 and PSR-16 adapter to sfCache will be more extendable (be careful with reserved characters for the cache key {}()/\@:).

alquerci avatar Sep 26 '18 19:09 alquerci

I created a dedicated class / revert the changes in the old class.

JohannesTyra avatar Sep 28 '18 09:09 JohannesTyra

@alquerci this is the time to close it, I guess.

e1himself avatar Mar 25 '19 12:03 e1himself

@e1himself I think too. Moreover because from braindata:master.

cc @JohannesTyra

alquerci avatar Mar 25 '19 13:03 alquerci

@alquerci @e1himself We have already a memcached implementation; back a couple of months ago I asked if it was OK to submit those changes; what's the current view on that?

desyncr avatar Mar 26 '19 17:03 desyncr

@alquerci @e1himself We have already a memcached implementation; back a couple of months ago I asked if it was OK to submit those changes; what's the current view on that?

@desyncr Memcached and Memcache are two distinct implementations of memcached client. As Memcached is like the next major version (with backward compatibility breaks). Both do not use the same PHP extension (if I am not wrong).

And as we focus on even more on fixes and help for Symfony2+ migration adding a new cache implementation is very low priority.


@thePanz As this PR took the master branch as remote. IMHO it is time to close it and open a new PR or at least an issue to keep track on this one.

alquerci avatar May 31 '19 12:05 alquerci

@alquerci What I was trying to express was that at my company we have a sfMemcachedCache implementation (what is @JohannesTyra working on).

desyncr avatar May 31 '19 14:05 desyncr

@desyncr do you have a pointer to that implementation? @alquerci sorry, I sort of lost track of this mrs

thePanz avatar May 31 '19 14:05 thePanz

@alquerci @desyncr : from my experience the sfApcCache is also not working anymore: the code from SF1 is using an old version of APC (not maintained). to function it is required to install the apcu-bc extension. Worst thing: the sfApcCache class will silently fail to store/retrieve items if the PHP extensions, making hard to debug issues if the SfApcCache is used to store session data.

My proposal here: create a new repository that bridges the caches implemented in SF4 (as @alquerci suggested, see: https://github.com/symfony/symfony/blob/v4.1.4/src/Symfony/Component/Cache/Traits/MemcachedTrait.php)

thePanz avatar Jul 21 '20 15:07 thePanz

@JohannesTyra what about providing the new cache layer in https://github.com/FriendsOfSymfony1/CacheLegacyBridge ? IIRC SymfonyCache already supports the Memcached backend

thePanz avatar Jul 24 '20 15:07 thePanz

@alquerci @JohannesTyra @desyncr Is it OK for you to close this PR?

thePanz avatar Aug 10 '20 12:08 thePanz