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

Supporting prefix_key #56

Open
kieste opened this issue Aug 26, 2015 · 6 comments
Open

Supporting prefix_key #56

kieste opened this issue Aug 26, 2015 · 6 comments
Labels

Comments

@kieste
Copy link

kieste commented Aug 26, 2015

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

@mevdschee mevdschee self-assigned this Aug 27, 2015
@mevdschee
Copy link
Contributor

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

LswMemcacheBundle/DependencyInjection/Configuration.php

@kieste
Copy link
Author

kieste commented Aug 27, 2015

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

@mevdschee
Copy link
Contributor

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
Copy link

kironet commented Dec 14, 2016

@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
Copy link
Contributor

mevdschee commented Dec 14, 2016

@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
Copy link

ghost commented Apr 17, 2018

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

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

No branches or pull requests

3 participants