News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Script-Tutorials.com:
How to use Memcache with PHP
September 28, 2011 @ 11:06:47

In a new tutorial from the Script-Tutorials.com site, they introduce you to memcache, an external caching tool that can help speed up the performance of your application dramatically.

Today we will talking about caching in PHP again. I will show you how you can use Memcache in PHP. We will prepare useful class for working with Memcache for us and several examples. Memcache itself providing procedural and object oriented interface to memcached, highly effective caching daemon, which was especially designed to decrease database load in dynamic web applications.

Included in the article is a simple "CacheMemcache" class that handles the dirty work for you of connecting to the memcache instance and pushing/pulling the data from the remote source. Also included are a few examples of its use - storing simple objects, pulling the same data back out and deleting a record. The source for the tutorial can be downloaded here. You can also find out more about using memcache in the PHP manual (Note: it does require an extension to be loaded to support this functionality).

0 comments voice your opinion now!
tutorial memcache caching


blog comments powered by Disqus

Similar Posts

Irakli Nadareishvili's Blog: Install PECL Memcache with XAMPP and PHP4

PHPMaster.com: Sending Emails with PHP

Lorna Mitchell's Blog: Using OAuth2 for Google APIs with PHP

DevShed: Parsing Web Document Nodes with the Tidy Library in PHP 5

Max Horvath's Blog: How to enable the Xdebug debugger in Zend Studio for Eclipse


Community Events





Don't see your event here?
Let us know!


series introduction framework release composer community symfony conference version language list tool security podcast laravel library interview opinion voicesoftheelephpant artisanfiles

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework