Login   Register  
PHP Classes
elePHPant
Icontem

Item Cache: Store values in cache with underflow and overflow

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-04-25 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 352 All time: 6,197 This week: 1,870Up
Version License PHP version Categories  
item-cache 1.0GNU Lesser General Publ...5.0PHP 5, Databases, Cache
Description Author  

This class can store and retrieve values in cache with support to underflow and overflow containers.

It can store a limited number of values with given keys in a cache array. When the cache size limit is reached, the class can call an external container overflow function to flush the oldest element in the class before it is removed.

The class can also retrieve values from the cache with given keys. When the requested value is not yet in the cache array, the class can call an external container underflow function to retrieve the value from a storage container.

A separate container class to store and retrieve values from a MySQL database.

Picture of Colin McKinnon
Name: Colin McKinnon <contact>
Classes: 3 packages by
Country: United Kingdom United Kingdom
Age: ???
All time rank: 159268 in United Kingdom United Kingdom
Week rank: 740 Up26 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file backendExample.inc.php Class Integrating a backend I/O processor using MySQL
Plain text file itemCache.inc.php Class Class definition
Accessible without login Plain text file testItemCache.php Example Test class using random data

 Version Control Unique User Downloads Download Rankings  
 0%Total:352All time:6,197
 This week:0This week:1,870Up