Cache Router + Memcache: What is shared bins?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
emcee0's picture

I'm using Cacherouter with Memcache and I'm curious what the diffference is between setting up shared to true or shared to false. I've been reading through a lot of documentation and it doesn't make sense to me.

"If you are using memcache as a "shared" bin, it will keep track of each item so that the flush only clears the bin and not the entire process This will allow to do things like use just one large memcache process. If you set "shared" to false, the module assumes that you have assigned one memcache process to each bin. "

"shared is only used on memcache as well. This allows memcache to be used with a
single process and still handle flushing correctly."

I've read and re-read the above two explainations but can't understand it. Anyone kind soul care to share their thoughts on this and explain to me in lay men terms?

Comments

You can use one Memcache

bennos's picture

You can use one Memcache instance with a lot of binary's and different sites. This is shared enviroment with one large memcache instance.

Another way is to use different and smaller memcache instance. every instance hosts just one "bin".

both solutions are possible. The best solution is individual to the project.

Useful post.Thanks.

deaccrahotels.info957's picture

Useful post.Thanks.

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week