Leaseweb / LswMemcacheBundle

Symfony bundle for Memcache Doctrine caching and session storage in the Web Debug Toolbar.
MIT License
202 stars 57 forks source link

Supporting prefix_key #56

Open kieste opened 9 years ago

kieste commented 9 years ago

Does lmb 2.x support a "prefix_key" option like 1.x did?

mevdschee commented 9 years ago

yes.. it is called "prefix".. see:

LswMemcacheBundle/DependencyInjection/Configuration.php

kieste commented 9 years ago

Thanks for your reply. But isn't the prefix option only an option for session or doctrine?

mevdschee commented 9 years ago

Ah, now I get the question! The memcached PHP extension had a (native) "prefix_key" option (for all operations including session, doctrine and firewall). The memcache (without d) PHP extension does not have this option, thus v2 does not have it. Does that answer the question?

kironet commented 7 years ago

@mevdschee so how to use this bundle with multiple websites on one server? I'm always getting ReflectionException(one website is working fine, but another returning one of this errors, because memcached use one cached data for all websites)

Property Entity\Category::$name does not exist or Property Entity\Category::$title does not exist

mevdschee commented 7 years ago

@kironet I don't know. Maybe somebody else does?

NB: A workaround might be to start another memcached on another port and use that.

ghost commented 6 years ago

Is not there another solution instead of using a another port?