Login   Register  
PHP Classes
elePHPant
Icontem

RS Cache: Store and retrieve variables from cache files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-09-09 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 592 All time: 4,756 This week: 1,478Up
Version License Categories  
rscache 1.0Free for non-commercial...Cache, Data types
Description Author  

This class can be used to store and retrieve variables in cache files.

It provides a function to store the value of a variable of any type in a file of a given folder.

The file name is determined by a given unique identifier and an integer number that indicates the time when the cache file was created.

The class also provides a function to retrieve the cached variable value given its original unique identifier.

The cache life time limit is configurable. If it has already elapsed the life time limit when a cached variable is retrieved, the cache retrieval function returns false.

The class also provides a function to delete the cache files stored in the current cache folder.

Picture of V. Yanson
Name: V. Yanson <contact>
Classes: 8 packages by
Country: United States United States
Age: 28
All time rank: 49757 in United States United States
Week rank: 438 Up45 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file cached_mysql_query.php Example Small script to show how you can implement the rscache class to cache mysql queries. Should only be implemented with SELECT queries.
Plain text file rscache.php Class Cache class itself

 Version Control Unique User Downloads Download Rankings  
 0%Total:592All time:4,756
 This week:0This week:1,478Up