<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wordpress API &#187; Memcached</title>
	<atom:link href="http://wordpressapi.com/category/memcached/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpressapi.com</link>
	<description>Wordpress Tutorials, Tips, Code, Hacks, Themes, plugin, Developer Code book -Wordpress Code, Themes, Plugins, Tips, Tutorials, News, Releases, Designs, Hacks, Tricks, Blog</description>
	<lastBuildDate>Tue, 08 May 2012 17:37:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to install the memcached binary on CentOS</title>
		<link>http://wordpressapi.com/2010/11/16/how-to-install-memcached-binary-on-centos/</link>
		<comments>http://wordpressapi.com/2010/11/16/how-to-install-memcached-binary-on-centos/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 17:31:42 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Memcached]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://images.wordpressapi.com/?p=5437</guid>
		<description><![CDATA[http://wordpressapi.com/2010/11/16/how-to-install-memcached-binary-on-centos/I always need to install the memcached on my linux servers like fedora or centos. On fedora box installing the memcached is very easy through yum install. But Centos installing and using memcached is not so easy. For my Ruby &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2010/11/16/how-to-install-memcached-binary-on-centos/<p>I always need to install the memcached on my linux servers like fedora or centos. On fedora box installing the memcached is very easy through yum install. But Centos installing and using memcached is not so easy.</p>
<p><img class="alignnone size-full wp-image-5438" title="memcached-logo-200x152" src="http://images.wordpressapi.com/memcached-logo-200x1521.png" alt="" width="200" height="152" /></p>
<p>For my Ruby on Rails and PHP applications I always need to install the memcached on server. Here I am going to give you the steps for installing the memcached.</p>
<p>Very important note: you need to install the gcc compiler for memcached binary installation. Using the memcached with php installation you need the phpize and php-pecl-memcached installed. follow my steps and memcached binary installtion.</p>
<p># yum install gcc*<br />
# cd /usr/src<br />
# wget http://pecl.php.net/get/memcache-2.2.5.tgz<br />
# tar zxvf memcache-2.2.5.tgz<br />
# cd memcache-2.2.5<br />
# phpize<br />
# ./configure<br />
# make<br />
# make install</p>
<p>For checking the php.ini file path use following command.</p>
<p>php -i | grep php.ini<br />
Configuration File (php.ini) Path =&gt; /usr/local/lib<br />
Loaded Configuration File =&gt; /usr/local/lib/php.ini</p>
<p>or your php.ini file will be following location</p>
<p># vim /etc/php.ini</p>
<p>Put following line in that file<br />
extension = “memcache.so”<br />
Restart the apache server<br />
# /etc/init.d/httpd restart</p>
<p>To check is memcache extension loaded in php, execute following command.<br />
#php -i | grep memcache</p>
<p>After restarting the machine memcache need to restart. For that us ( Use this step for only Admin Adserver Box)<br />
# vi /etc/rc.local<br />
Put following contect in to rc.local file (file location &#8211; /etc/rc.local)<br />
# memcached -d -p 11211 -u nobody -c 1024 -m 1024</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2010/11/16/how-to-install-memcached-binary-on-centos/" title="install memcached binary centos">install memcached binary centos</a></li><li><a href="http://wordpressapi.com/2010/11/16/how-to-install-memcached-binary-on-centos/" title="memcached binary">memcached binary</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2010/11/16/how-to-install-memcached-binary-on-centos/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to use memcached with php</title>
		<link>http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/</link>
		<comments>http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 13:43:46 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Memcached]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://images.wordpressapi.com/?p=2839</guid>
		<description><![CDATA[http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/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 &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/<p><a href="http://images.wordpressapi.com/memcached-logo-200x152.png"><img class="alignnone size-full wp-image-2840" title="memcached-logo-200x152" src="http://images.wordpressapi.com/memcached-logo-200x152.png" alt="" width="200" height="152" /></a></p>
<p>If you try to install memcached with Linux server then use following commands</p>
<p># yum install libevent<br />
# yum install libmemcached libmemcached-devel<br />
# yum install memcached</p>
<p>For Starting the memcached server<br />
# memcached -d -m 512 -l 127.0.0.1 -p 11211 -u nobody</p>
<p>11211 port is default port for memcached server.</p>
<p>For using the memecached with php client you need to install following package</p>
<p># pecl install memcache</p>
<p>After installing all packages restart the apache server.</p>
<p># /etc/sbin/service httpd restart</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/* OO API */
$memcache_obj = new Memcache;
$memcache_obj-&gt;connect('memcache_host', 11211);
$memcache_obj-&gt;set('any_key', 'some value', MEMCACHE_COMPRESSED, 50);
echo $memcache_obj-&gt;get('any_key');
?&gt;
</pre>
<p>Important Note: Memcached key has limitations of 250 charactors, So key value should be with in 250 charactors.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/" title="how to use memcached">how to use memcached</a></li><li><a href="http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/" title="how to use memcache in php">how to use memcache in php</a></li><li><a href="http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/" title="how to use memcache with wordpress">how to use memcache with wordpress</a></li><li><a href="http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/" title="how to use memcached in php">how to use memcached in php</a></li><li><a href="http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/" title="howto use memcached with wordpress">howto use memcached with wordpress</a></li><li><a href="http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/" title="libmemcached tutorial">libmemcached tutorial</a></li><li><a href="http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/" title="php Memcache MEMCACHE_COMPRESSED">php Memcache MEMCACHE_COMPRESSED</a></li><li><a href="http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/" title="using memcached with php">using memcached with php</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>How to install php &#8211; memcached server on centos5 or any linux OS</title>
		<link>http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/</link>
		<comments>http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 05:32:21 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Memcached]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[centos5]]></category>
		<category><![CDATA[installtion]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://images.wordpressapi.com/?p=1119</guid>
		<description><![CDATA[http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/What is Memcached? Free &#38; open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is an in-memory key-value store for small chunks of &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/<p>What is Memcached?<br />
Free &amp; open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.</p>
<p><a href="http://images.wordpressapi.com/memcached_banner75.jpg"><img class="alignleft size-medium wp-image-1120" title="memcached_banner75" src="http://images.wordpressapi.com/memcached_banner75-300x55.jpg" alt="memcached_banner75" width="300" height="55" /></a></p>
<p>Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.</p>
<p>Please use following commands for installtion;<br />
[root@ip-192-168-2-125 wordpressapi]# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm</p>
<p>[root@ip-192-168-2-125 wordpressapi]# yum remove php-common</p>
<p>[root@ip-192-168-2-125 wordpressapi]# yum install php-pdo php-mcrypt squirrelmail php-pecl-apc php-xml php-gd php-devel php php-imap php-pgsql php-pear php-soap php-mbstring php-ldap php-mysql php-cli php-pecl-memcache</p>
<p>[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/memcached restart<br />
Shutting down Distributed memory caching (memcached):      [  OK  ]<br />
Starting Distributed memory caching (memcached):           [  OK  ]</p>
<p>[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/httpd restart<br />
Stopping httpd:                                            [  OK  ]<br />
Starting httpd:                                            [  OK  ]</p>
<p>[root@ip-192-168-2-125 wordpressapi]# vim /etc/php.ini<br />
In php.ini file Please find the &#8220;extension=modulename.extension&#8221; words<br />
Under that sentance please paste following line:<br />
extension=memcache.so<br />
Note: dont comments that line.</p>
<p>[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/httpd restart<br />
Stopping httpd:                                            [  OK  ]<br />
Starting httpd:                                            [  OK  ]<br />
[root@ip-192-168-2-125 wordpressapi]#</p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Memcached Server with Rails</title>
		<link>http://wordpressapi.com/2009/06/16/memcached-server-with-rails/</link>
		<comments>http://wordpressapi.com/2009/06/16/memcached-server-with-rails/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 06:20:03 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Memcached]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://purab.wordpress.com/?p=90</guid>
		<description><![CDATA[http://wordpressapi.com/2009/06/16/memcached-server-with-rails/To install memcached server on linux/fedora box yum install memcached Find help for memcached commands and option memcached -help Start memcached server(11211 is default port Number for memcached server) memcached -m 500 -l 192.168.2.4 -p 11211 -vv (192.168.2.4 this is &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2009/06/16/memcached-server-with-rails/<p>To install memcached server on linux/fedora box<br />
yum install memcached</p>
<p>Find help for memcached commands and option<br />
memcached -help</p>
<p>Start memcached server(11211 is default port Number for memcached server)<br />
memcached -m 500 -l 192.168.2.4 -p 11211 -vv<br />
(192.168.2.4 this is my local ip address you can cahnge that)</p>
<p>Stop the Memcached server<br />
ps -ef|grep memcached<br />
kill PROCESS_ID</p>
<p>start memcached server with<br />
memcached -m 500 -l 192.168.2.4 -p 11211 -vv</p>
<p>How to install on Windows server:<br />
1.  Downloaded this Win32 port of memcached by Kenneth Dalgleish.(download from following url)<br />
http://thewebfellas.com/blog/2008/6/9/rails-2-1-now-with-better-integrated-caching<br />
2. Extracted the files to C:\Program Files\memcached<br />
3. Opened a command prompt in the folder and installed memcached as a service using memcached -d install<br />
4. Started the service using net start &#8220;memcached Server&#8221;</p>
<p>How to use memcache in Rails app?<br />
Open  /config/environments/development.rb for development mode,<br />
production.rb for production mode.<br />
paste following line into file.<br />
config.cache_store = :mem_cache_store, &#8217;127.0.0.1&#8242;, &#8217;127.0.0.1:11211&#8242; , { :namespace =&gt; &#8216;dev&#8217; }<br />
(127.0.0.1 this is my local ip address you can cahnge or point out to any server where memcached server is running)<br />
Restart mongrel server. you are ready to use memcached server</p>
<p>How to use in Rails<br />
@user= User.find(1)&#8212;&#8211;OLD Code</p>
<p>New Code With Caching:<br />
@user = cache(['User',1],:expires_in =&gt; 30.minutes) do<br />
User.find(1)<br />
end</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2009/06/16/memcached-server-with-rails/" title="installing memcached fedora rails gem">installing memcached fedora rails gem</a></li><li><a href="http://wordpressapi.com/2009/06/16/memcached-server-with-rails/" title="memcached server for linux for rails">memcached server for linux for rails</a></li><li><a href="http://wordpressapi.com/2009/06/16/memcached-server-with-rails/" title="start memcached on rails server start development">start memcached on rails server start development</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2009/06/16/memcached-server-with-rails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: wordpressapi.com @ 2012-05-23 02:32:48 by W3 Total Cache -->
