Projects / CacheIt

CacheIt

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.

Licenses LGPL
Operating Systems OS Independent
Implementation PHP

Tweet this project Short link

Rss Recent releases

No changes have been submitted for this release.

C5737ae13544352f5d9b793da9169f92_thumb

Project Spotlight

Validate Saudi ID

A PHP class to validate Saudi resident identifier numbers.

No-screenshot

Project Spotlight

POMStrap

An application bootstrap based on Maven2 project files.