
今天研究下pear的cache_lite。
从http://pear.php.net上下载了最新的cache_lite。cache_lite是pear库类中一个轻型的cache库类。的确轻型,代码总计4个文件。lite.php cache/File.php cache/unction.php cache/output.php。而且扩展性特别好,加入到自己的库类,主要修改下lite.php的raiseError函数。
加入自己的库类后,开始测试。首先基本的缓存:
require_once(../libs/cache/Lite.php);
$id=1;
$options = array(
cacheDir =
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...