Login   Register  
PHP Classes

Class: Cache variables

Icontem
elePHPant

  Classes of Piotrek M  >  Cache variables  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Cache variables Support forum
Base name: cache-variables
Description: Cache variable values in PHP scripts
Version: 1.0
Required PHP version: 5.0
License: GNU General Public License (GPL)
 
  Author   Group folder image Groups   Detailed description  
  Applications   Files Files  

Author

Picture of Piotrek M
Name: Piotrek M <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: Poland Poland - PHP jobs in Poland
Home page: ???

Innovation Award

PHP Programming Innovation award nominee
January 2010
Number 10
Sometimes it is necessary to store the results of an intensive processing job in a cache storage, so it can be reused many times without having to go through the same intensive processing job again.

This class provides a solution for storing the values of variables that result from a processing job.

It generates a PHP script file that assigns the values of the variables. This way it can be loaded much faster using a PHP opcode cache extension that may be available under the current PHP installation.

Manuel Lemos

Groups

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Cache Classes for managing cached pages View top rated classes
Group folder image Code Generation Compilers and tools that generate code automatically View top rated classes

Detailed description

This class can be used to cache variable values in PHP scripts.

It can take the value of a variable and generate a cache file, if it does not exist already, that is PHP script that assigns the variable value.

The class can also load variable value from the cache file script if it exists and it is not expired.

The cache file may be invalidated by removing the cache file script.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file cache.class.php Class cache
Plain text file example Example example use
Download all files: cache-variables.tar.gz cache-variables.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.