|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2015-09-14 (3 years ago) ||Not enough user ratings||Total: 273 ||All time: 7,472 This week: 476|
This class can cache a limited amount of data records in memory.
It takes a callable function as parameter that will be used to retrieve data records to be cached.
When the application needs to fetch a data record, the class will call the given callable function if the record with a given id is not yet cached in memory in class array.
The class will maintain up to a given limit of cached data records in memory.
|Some algorithms need to access information records multiple times during the execution of the algorithm.
For this type of algorithm it more efficient to keep the most frequently accessed records of information memory.
This class implements a caching method that does that. It retrieves data records into a cache array up to a limited amount of records so it avoids using too much memory.
The use of configurable callback function allows it to be used to retrieve cached records from virtually any type of data source.
A little class to help improve our scripts that access to a large quantity of data.
A class to document the article I published on PHPClasses.
Once the repo is in your drive run
` in order to generate the appropriate autoload files.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.