application/config.php
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
'cache' => array(
// 驱动方式
'type' => 'File',
//'type' => 'memcache',
//'type' => 'redis',
// 缓存保存目录
'path' => CACHE_PATH,
// 缓存前缀
'prefix' => 'mem_',
// 缓存有效期 0表示永久缓存
'expire' => 0,
),
可以依次这样使用redis>memcache>file 吗? 今天发现redis服务挂了,不会自动切换到file上,好像使用memcache也有点问题