News Feed
Sections




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

Kevin van Zonneveld's Blog:
Redis PHP Introduction
March 26, 2010 @ 07:46:04

Kevin van Zonneveld has written up a new post for his blog today looking at using Redis in your application for caching information (similar to memcache).

Don't know Redis? Think Memcache, with support for for lists, and disk-based storage. You can use Redis as a database, queue, cache server or all of those combined. [...] Redis keeps the entire dataset in memory, so it's still crazy fast: 110000 SETs/second, 81000 GETs/second. Good enough for to you? [...] Yes, you can store (serialized) arrays in Memcache. But every time you change 1 element, you'd have to invalidate & overwrite the entire array.

He talks about installing the redis server (a simple task if you use the package management tool for your linux release) and some simple code to push data into the caching server for keys, lists, sets and how to pull the information back out sorted.

0 comments voice your opinion now!
redis cache memcache memory


blog comments powered by Disqus

Similar Posts

Chris Jones: Using PHP 5.5's New "Opcache" Opcode Cache

PHPBuilder.com: Build Blazing Fast PHP Websites with Memcached Distributed Caching

Padraic Brady's Blog: Zend Framework Caching (Parts 1, 2 & 2b)

Pierre-Alain Joye's Blog: cache added to htscanner

Brian Moon's Blog: You have to be really smart to code PHP!


Community Events





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


interview application list install language threedevsandamaybe laravel bugfix symfony series introduction api configure library podcast release community code developer wordpress

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