PHP Classes
elePHPant
Icontem

RS Cache: Store and retrieve variables from cache files

Recommend this page to a friend!
  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 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 594 All time: 4,978 This week: 1,255Up
Version License Categories
rscache 1.0Free for non-comm...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
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:594
This week:0
All time:4,978
This week:1,255Up