Categories

Visit BadVista.org Visit PlayOgg.org Visit DefectiveByDesign.org

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


User level: Submit a level

User Rating:

Homepage

License(s) :

LGPL

Rate it!

 

About

Leadership
Related Projects

CGI::Cache, Foocache, PhpCache, SmartCache, Squid, Turck MMCache

Versions

2003-02-11

2003-02-11 stable released 2003-02-11

User Community and Support

General Resources
Support Resources

Development

Developer Resources
Bug Tracking Resources
 

Please send comments on these web pages to bug-directory@fsf.org, send other questions to info@fsf.org.

Copyright © 2000 - 2008 Free Software Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA

The copyright licensing notice below applies to this text. Any software described in this text has its own copyright notice and license, which can usually be found in the distribution itself.

Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.