If you try to install memcached with Linux server then use following commands
# yum install libevent
# yum install libmemcached libmemcached-devel
# yum install memcached
For Starting the memcached server
# memcached -d -m 512 -l 127.0.0.1 -p 11211 -u nobody
11211 port is default port for memcached server.
For using the memecached with php client you need to install following package
# pecl install memcache
After installing all packages restart the apache server.
# /etc/sbin/service httpd restart
<?php
/* OO API */
$memcache_obj = new Memcache;
$memcache_obj->connect('memcache_host', 11211);
$memcache_obj->set('any_key', 'some value', MEMCACHE_COMPRESSED, 50);
echo $memcache_obj->get('any_key');
?>
Important Note: Memcached key has limitations of 250 charactors, So key value should be with in 250 charactors.
Incoming search terms:
- how to use memcached
- how to use memcache in php
- how to use memcache with wordpress
- how to use memcached in php
- howto use memcached with wordpress
- libmemcached tutorial
- php Memcache MEMCACHE_COMPRESSED
- using memcached with php







This is a superb post .
But I was wondering how do I suscribe to the RSS feed?
Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
Awesome post. I so good to see someone taking the time to share this information
This post makes a lot of sense !
Great read. Thanks for the info!
http://quit1-smoking.blogspot.com/