Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

mcrouter compatibility #78

Open
theosilva opened this issue Aug 19, 2016 · 1 comment
Open

mcrouter compatibility #78

theosilva opened this issue Aug 19, 2016 · 1 comment

Comments

@theosilva
Copy link

Hi,

Working with this bundle on its release 2.1, I had issue with mcrouter or any working cluster of memcache servers. I fixed this problem by a simple hack in Lsw\MemcacheBundle\Cache\LoggingMemcache at line 145 in get method :

$result = parent::get($_key);

This method has these two pointer parameters "&$flags=null" and "&$cas=null" which are may be usefull in set method but completely not used to get values. These two parameters won't allow to get value with any cluster or memache proxy.

Thanks for this project.

@mevdschee
Copy link
Contributor

I disagree with them being "completely not used".

For more information about what CAS is and what the flags mean, read:

https://github.com/memcached/memcached/blob/master/doc/protocol.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants