PHP Classes

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: 598 All time: 5,196 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: 38
All time rank: 53268 in United States United States
Week rank: 312 Up38 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:598
This week:0
All time:5,196
This week:377Up