简易的Cache系统

Posted by Cofyc, on June 13, 2008, 10:06 pm,

不想使用庞大的Zend Framework,就模仿Zend_Cache写了一个简易的Cache系统。一个文件,共247行,功能、用法与Zend_Cache类似。

支持三种常用的缓存机制:File和Memcache以及Apc。

支持两种缓存方法:变量(Variables)和输出(Output)缓存。

不支持tags。

代码:http://pastebin.org/45146

Update:

0.1 permission issues fixed

0.2 Apc cache backend added

 

用法如下: continue...

2 comments  - Tags: zend framework, cache, file, memcache, output

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License
Powered by Project Neverland, Theme modified from gluedideas