Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to get into storing data in memcached and enhance a few areas of my site. I've googled around for guides in PHP and am finding limited or very old articles. There's always the documentation but I'd prefer to read from someone who's experienced to ensure proper setup.


Specific topics I'd like to get details on / questions answered...

  • How often does it refresh the cache?
  • For your average site that has member accounts to be logged in on all pages, is it generally a good idea to store sessions in memcache?
  • Does the length of the keys of values have any noticable effect on performance for getting/setting the variables?
share|improve this question
up vote 1 down vote accepted

Check this one out ... they may be old but I doubt much has changed.

Using Memcache with MySQL and PHP

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.