PHP三层缓存类V1

PHP三层缓存类,支持APC, redis, 静态文件, 支持set , get方法,初始化三种缓存的配置,详情看代码php

调用代码以下:git

<?php
$tc = new Three_Cache();
$tc->set_first_adater();
$tc->set_second_adater('127.0.0.1', 6379);
$tc->set_third_adater('/opt/cache/');
$tc->set('test_key', 'test_value');
echo $tc->get('test_key');
?>


github地址: https://github.com/r00tjimmy/three-level-cache-for-PHPgithub

相关文章
相关标签/搜索