Setting up a website to use memcache

I installed (or better, my host) memcached on my VPS. I want to configure it for my website, since I'm not so good at it, I am trying to ask for some help here on stackoverflow. Please can you send me a guide or do a guide here to configure memcached to work on my website?

Thanks. Regards Meo

+4
source share
3 answers

If you use only one server, it would be much wiser to use APC instead of Memcached. Memcached really shines when you have multiple websites and you need to share the cache. APC will cache things in memory locally, avoiding network trips, as well as the operation cache code, resulting in tremendous speedups!

In any case, to answer your question, you can use the memcached extension. Documentation is available in the PHP manual .

+2
source

Here is a very simple class to easily embed memcached on your website:

http://simple_memcache.onlinephpfunctions.com/

0
source

All Articles