【文件属性】:
文件名称:PHP实现的缓存类库.zip
文件大小:2KB
文件格式:ZIP
更新时间:2022-07-31 04:18:58
类库下载-PHP实现的缓存类库
<?php
class Cache {
private $dir;
private $lifetime;
private $cacheid;
private $ext;
function __construct($dir='',$lifetime=1800) {
if ($this->dir_isvalid($dir)) {
$this->dir = $dir;
$this->lifetime = $lifetime;
$this->ext = '.Php';
$this->cacheid = $this->getcacheid();
}
}
private function isvalid() {
if (!file_exists($this->cacheid)) return false;
if (!(@$mtime = filemtime($this->cacheid))) return false;
if (mktime() - $mtime > $this->lifetime) return false;
return true;
}这是一个PHP实现的缓存类库,需要的朋友可以下载使用
【文件预览】:
PHP实现的缓存类库
----php中文网下载站.url(114B)
----php中文网免费下载站.txt(219B)
----h.php(3KB)