<?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>Developer Code book &#187; Memcached</title> <atom:link href="http://wordpressapi.com/category/memcached/feed/" rel="self" type="application/rss+xml" /><link>http://wordpressapi.com</link> <description>Wordpressapi.com is focused on Wordpress API, wordpress news, wordpress themes, wordpress plugins, wordpress tips, wordpress tutorials, wordpress design wordpress templates, wordpress breaking news and web-development. We deliver useful information about wordpress,  wordpress latest trends and wordpress techniques, wordpress useful ideas, wordpress innovative approaches and wordpress tools. Social Media news blog covering cool new websites and social networks: Facebook, Google, Twitter, MySpace and YouTube.  The latest web technology news, via RSS daily.</description> <lastBuildDate>Sun, 05 Sep 2010 06:21:54 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <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>Sony</dc:creator> <category><![CDATA[Linux]]></category> <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://wordpressapi.com/?p=2839</guid> <description><![CDATA[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.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/memcached-logo-200x152.png"><img
class="alignnone size-full wp-image-2840" title="memcached-logo-200x152" src="http://wordpressapi.com/files/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;">
&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> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/02/how-to-use-memcached-with-php/feed/</wfw:commentRss> <slash:comments>1</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>Sony</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Memcached]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[news]]></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://wordpressapi.com/?p=1119</guid> <description><![CDATA[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 arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. Please.....]]></description> <content:encoded><![CDATA[<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://wordpressapi.com/files/memcached_banner75.jpg"><img
class="alignleft size-medium wp-image-1120" title="memcached_banner75" src="http://wordpressapi.com/files/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> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/feed/</wfw:commentRss> <slash:comments>6</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>Sony</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[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 my local ip address you can cahnge that) Stop the Memcached server ps -ef&#124;grep memcached.....]]></description> <content:encoded><![CDATA[<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)</p><p>http://thewebfellas.com/blog/2008/6/9/rails-2-1-now-with-better-integrated-caching</p><p>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> ]]></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>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 32/50 queries in 0.176 seconds using disk

Served from: wordpressapi.com @ 2010-09-07 13:47:09 -->