- 授权协议: MIT
- 开发语言: PHP
- 操作系统: 跨平台
- 软件首页: http://code.google.com/p/secache/
软件介绍
php编写的文件型缓存解决方案
* 纯php实现, 无须任何扩展,支持php4 / 5
* 使用lru算法自动清理过期内容
* 可以安全用于多进程并发
* 最大支持1G缓存文件
* 使用hash定位,读取迅速
用法样例
require('../secache/secache.php');
$cache = new secache;
$cache->workat('cachedata');
$key = md5('test'); //必须自己做hash,前4位是16进制0-f,最长32位。
$value = '值数据'; //必须是字符串
$cache->store($key,$value);
if($cache->fetch($key,$return)){
echo '<li>'.$key.'=>'.$return.'</li>';
}else{
echo '<li>Data get failed! <b>'.$key.'</b></li>';
}
Programming PHP
Rasmus Lerdorf、Kevin Tatroe、Peter MacIntyre / O'Reilly Media / 2006-5-5 / USD 39.99
Programming PHP, 2nd Edition, is the authoritative guide to PHP 5 and is filled with the unique knowledge of the creator of PHP (Rasmus Lerdorf) and other PHP experts. When it comes to creating websit......一起来看看 《Programming PHP》 这本书的介绍吧!
