Home arrow PHP arrow Caching Result Sets in PHP: Implementing the Caching System in PHP 5

Caching Result Sets in PHP: Implementing the Caching System in PHP 5

Welcome to the final part of the series “Caching Result Sets in PHP.” Hopefully, the last chapter of this tutorial will help you to put together all of the classes developed in the previous part, and demonstrate how the complete caching system can be implemented in a PHP 5 controlled environment.

TABLE OF CONTENTS:
  1. Caching Result Sets in PHP: Implementing the Caching System in PHP 5
  2. Caching result sets in an PHP 5 scenario: a detailed look at the “Cache” class
  3. Traversing an array structure: developing an array Iterator
  4. Completing the caching application: assembling the relevant classes
  5. A practical approximation: putting the caching application to work
By: Alejandro Gervasio
Rating: starstarstarstarstar / 6
November 07, 2005

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

As you probably remember, the developed caching application is essentially composed of several classes that have a delineated range of operations, instead of being structured as a huge wealth of packaged methods and properties that don’t keep a strong relationship with each other.

This methodology for developing a complex system, by splitting the whole application into many functional classes, definitely presents greater flexibility and portability, since each class acts like a programming entity capable of receiving and transferring processed data, and plugging itself into another class.

Based on some of the key concepts described above, I’ve built a result set caching class that aggregates a MySQL abstraction class, and utilizes an array processor (known commonly as an array Iterator) to carry out all of the array operations.

Of course, the underlying theory would be rather useless without writing the code to be used in real environments. Therefore, let’s get ready to tackle the final round and build the complete caching application. It’s going to be exciting!



 
 
>>> More PHP Articles          >>> More By Alejandro Gervasio
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap

Dev Shed Tutorial Topics: