- 'memcache'=>array(
- 'class'=>'CMemCache',
- 'servers'=>array(
- array(
- 'host'=>'127.0.0.1',
- 'port'=>11211,
- 'weight'=>60,
- ),
- array(
- 'host'=>'127.0.0.1',
- 'port'=>11211,
- 'weight'=>40,
- ),
- ),
- ),
- Yii::app()->memcache->get(id);
- Yii::app()->memcache->set(id,value,time);