YII 缓存的一些问题

多缓存配置

array(
  'components'=>array(
      ..
     
       'MemCache'=>array(
                    'class'=>'CMemCache',
                    //下面的配置保证YII不对存储的key 和数据进行 hash 和序列化操作
                     'hashKey'=>false,
                      'keyPrefix'=>'',
                       'serializer'=>false,
                    'servers'=>array(
                        array(
                            'host'=>'192.168.132.130',
                            'port'=>11211, 
                            
                        ),
                    ),
                ),
            'FileCache'=>array(
                'class'=>'CFileCache',
                'cachePath'=>'application.cache',
                
            ),
      ..        
    ),  
),                    

 

posted @ 2014-03-12 12:56  My Game  阅读(201)  评论(0编辑  收藏  举报