Categories
CacheIt
CacheIt is a PHP class 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. Then both 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.
CacheIt doesn't do LRU--if you're concerned about the cache directory getting too large, have a cron job scan it occasionally and delete the oldest files.
Last updated 19 Feb, 2003
About
Leadership
- Andrew Chen - Maintainer
Related Projects
CGI::Cache, Foocache, PhpCache, SmartCache, Squid, Turck MMCache
Versions
2003-02-11
2003-02-11 stable released 2003-02-11
- Released: 11 Feb, 2003
- Code Maturity: Stable
- Source Archive: http://www.andrewsw.com/text/CacheIt.class.inc.txt
- Licenses: LGPL
- Interfaces: Command Line



