PHP Classes

Item Cache: Store values in cache with underflow and overflow

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 363 All time: 6,881 This week: 455Up
Version License PHP version Categories
item-cache 1.0GNU Lesser Genera...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
  Performance   Level  
Name: Colin McKinnon <contact>
Classes: 5 packages by
Country: United Kingdom
Age: ???
All time rank: 144867 in United Kingdom
Week rank: 200 Up10 in United Kingdom Up
Innovation award
Innovation award
Nominee: 4x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:363
This week:0
All time:6,881
This week:455Up