How Does Yii Cache Works?

Hi Guys,

Recently I was researching options to enhance Yii application performance and came across Yii’s cache mechanism.

Can anyone please explain me how does this actially works?

I have used Memcache key-value store,


array(

    ......

    'components'=>array(

        ......

        'cache'=>array(

            'class'=>'system.caching.CMemCache',

            'servers'=>array(

                array('host'=>'server1', 'port'=>11211, 'weight'=>60),

                array('host'=>'server2', 'port'=>11211, 'weight'=>40),

            ),

        ),

    ),

);

I am willing to implement this feature for one of my legacy non Yii (vanilla PHP app).

Hello!

If i get it, you re looking to optimize your application right (tunning)? Using the Cache that Yii provides…

Did you check this before?

APC Extension

Yes I checked this before. What I want to know is how Yii enables Memcache/APC Cache? So that I can use some technique to implement same in non-Yii app.