codeigniter3.*已经自带redis库了# 新建 /application/config/redis.php 配置如下$config['socket_type'] = 'tcp';$config['host'] = '127.0.0.1';$config['password'] = NULL;$config['port'] = 6379;$config['timeout'] = 0; 用法$this->load->driver('cache', array('adapter' => 'redis', 'backup' => 'file'));$foo = 'aaa';$this->cache->save('foo', $foo, 300);$this->cache->get('foo');
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-