开发者

Configure website to use memcache

开发者 https://www.devze.com 2023-04-01 03:46 出处:网络
I have installed (or better my host has installed) memcached at my VPS. I want to configure it for my website, as i am not so expert on this things, I am trying to ask some help here at stackoverflo开

I have installed (or better my host has installed) memcached at my VPS. I want to configure it for my website, as i am not so expert on this things, I am trying to ask some help here at stackoverflo开发者_开发问答w. Please can some send me a guide, or make here a guide how to configure memcached to run for my website ?

Thank you Best Regards Meo


If you're only running one server, it would make a lot more sense to use APC instead of Memcached. Memcached really shines when you have multiple web nodes and need to share a cache across them. APC will cache things in memory locally, avoiding a trip across the network, and is also an opcode cache, resulting in an awesome speed boost!

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


You need to hook PHP into memcache.

http://pureform.wordpress.com/2008/05/21/using-memcache-with-mysql-and-php/


Here a very simple class to implement memcached on your website very easy:

http://simple_memcache.onlinephpfunctions.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消