您的位置:首页 > 数据库 > Memcache

thinkphp 结合memcache 使用

2016-07-06 16:29 417 查看
1. 下载php_memcache.dll;

2.放到php/ext 文件夹下面;

3.php.ini 增加extension=php_memcache.dll 

4.修改thinkphp config.php 配置文件:   'DATA_CACHE_TYPE' => 'Memcache', 'DATA_CACHE_TIME' => '3600',

5.thinkphp 实现代码:

eg: 

     function index(){

S('test','goirl');

$test = S('test');
 echo $test;

    }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: