Memcached PHP
Posted in Technical on March 30th, 2010 by iyoung – Be the first to commentInstalling memcached for php on CentOS is as easy as: -
[code]
yum install memcached
yum install php-pecl-memcache
service httpd graceful
[/code]
Once installed you can start the memcached service as either a standalone service or as a daemon.
Run as any user other than root, starts as a normal process using up to 1 gig of RAM.
[code]
memcached -m1024
[/code]
Or as a daemon
[code]
memcached -d -m1024
[/code]
You can always get more info about memcached’s options with
[code]
man memcached
[/code]
PHP memcache documentation http://php.net/manual/en/book.memcache.php
Memcached’s site http://memcached.org/
