PHP Classes

PHP File Cache Library: Store in a cached data from by a callback function

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 128 All time: 9,376 This week: 88Up
Version License PHP version Categories
filecache-php 1.0GNU General Publi...5PHP 5, Files and Folders, Cache
Description 

Author

This class can store in a cached data from by a callback function.

It can check if a given cache file exists.

If the file does not exist or cache timeout period has passed, the class can call a callback function to retrieve the data that will be stored in the cache file.

If the cache file exists and it is still valid, the class returns the data stored in the cache file.

Innovation Award
PHP Programming Innovation award nominee
March 2022
Number 8
Caching is a method that many developers use to store the results of processes that take a long time to execute.

The next time the same process needs to execute, applications can use the data stored in a cache container to avoid the same slow process, thus gaining more performance.

This package provides a simplified approach to caching long process results data in files. It allows developers to pass a callback function that will generate the results if the cached data does not exist or is expired.

Manuel Lemos
Picture of Ujah Chigozie peter
  Performance   Level  
Name: Ujah Chigozie peter <contact>
Classes: 25 packages by
Country: Nigeria Nigeria
Innovation award
Innovation award
Nominee: 11x

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file Cache.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:128
This week:0
All time:9,376
This week:88Up