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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 597 All time: 5,140 This week: 377Up
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
Age: 35
All time rank: 52365 in United States United States
Week rank: 522 Up59 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:597
This week:0
All time:5,140
This week:377Up

For more information send a message to info at phpclasses dot org.