子分类
  • 无子分类
tun升级说明(svn revision 32)
  • 2014-08-07发布
  • 2014-08-07修改

bzf svn revision 32 升级说明:

发布时间:2014-11-05


增加cache类对memcached的支持,配置文件可参考

Tun/ConfigDemo/cache.config.php


内容如下:

<?php
return array(
        'cache'=>array(
            'storage' => 'memcached',
            //'storage' => 'filesystem',
            'isCrypt' => false,
            'expiration' => '3600',
            'master'=>array(
                            'host' => '127.0.0.1',
                            'port' => '11211',
                    ),
            'blance' =>array(
                    array(
                            'host' => '127.0.0.1',
                            'port' => '11211',
                    ),
                    array(
                            'host' => '127.0.0.1',
                            'port' => '11211',
                    ),
                    
            ),    
            
//             'cache_server' => array(
//                     'cachedir' => 'data/cache',
//             ),
            'cache_server' => array(
                    'cachedir' => 'data/cache',
            ),
        ),
    );


如果只有一台memcached缓存服务器,需注释掉blance项。


cache类的使用请参考:Cache缓存类(class Cache)