PHP Classes

CachClass: Store and retrieve cached data in files

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 509 All time: 5,769 This week: 455Up
Version License PHP version Categories
cachclass 1.01GNU General Publi...7.4PHP 5, Files and Folders, Cache


This class can store and retrieve cached data in files.

It can store an arbitrary data string in a cache file with a given name.

The class can also check if the cache file did not expire and in that case retrieve the cached data.

The directory where cache files are stored, the cache file name extension and the cache expiry time are configurable parameters.

The code and the comments are in German.

In German:

Mit dieser Classe können Sie ausgaben von Programmteilen in ein Textfile speichern um eine neuausfuehrung des Programmteil für eine bestimmte Zeit zu unterbinden.

Picture of Nico Schubert
  Performance   Level  
Name: Nico Schubert <contact>
Classes: 1 package by
Country: Germany Germany
Age: 40
All time rank: 3252186 in Germany Germany
Week rank: 276 Up16 in Germany Germany Up


$cache=new cachen(dirname(__FILE__),'testfile', 300);
$text='Das ist mein Text';
}else {

  Files folder image Files  
File Role Description
Accessible without login Plain text file cachen.class.php Class Die Class...
Accessible without login Plain text file example_cachen.php Example Beispiel
Accessible without login Plain text file LICENSE.txt Lic. LICENSE

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,769
This week:455Up