Description du projet

CacheIt is a PHP class designed to facilitate caching. You subclass Cachable and implement the get method of Cachable, and you instantiate it as well as instantiate CacheIt with arguments of the instance of your subclass of Cachable, the path (ending in a trailing slash) to the directory that cached data will be kept, and the number of seconds that a cached entry can be kept before expiring. Then, just call the get method of the instance of CacheIt and caching happens automatically. This doesn't do LRU or anything like that--if you're concerned about the cache directory getting too large, have a cron job scan it occasionally and delete the oldest files.

Évaluation
Votre évaluation
Votre avis sur ce projet