Cachearium 是一个用于 PHP 应用的高级缓存框架,具有简单和快速的特点。
- recursive cache system, all the nested russian dolls you ever wanted
- easy to integrate with your existing classes
- key based cache expiration, no more headaches to invalidate stuff
- multiple dependencies
- lifetime expiration, because stuff rots
- low level cache storage access, when you want to go raw
- lots of examples and tests ready to copy/paste
- variable fragments for things that are almost the same but not quite
- pluggable backend modules: RAM, Memcached, Filesystem and you can add your own
- detailed logs for profiling and debugging, and also see what is cached live in your webpage
示例代码:
用 php + mysql 驱动的在线商城系统,我们的目标为中国的中小企业及个人提供最简洁,最安全,最高效的在线商城解决方案,使用了自建的会员积分折扣功能,不同的会员组有不同的折扣,让您的商店吸引更多的后续客户。 系统自动加分处理功能,自动处理会员等级,免去人工处理的工作量,让您的商店运作起来更方便省事 采用了自建的直接模板技术,免去了模板解析时间,提高了代码利用效率 独立开发的购物车系统,使用最
$data = 'xxxx'; // store$cache = CacheAbstract::factory('your backend');$cache->store($data, new CacheKey('Namespace', 'Subname')); // get it latertry { $data2 = $cache->get(new CacheKey('Namespace', 'Subname')); // $data2 == 'xxxx';}catch (NotCachedException($e)) { // handle not cached} // store new value with automatic invalidation$data = 'yyy';$cache->store($data, new CacheKey('Namespace', 'Subname'));项目主页:http://www.open-open.com/lib/view/home/1431394929966
立即学习“PHP免费学习笔记(深入)”;










