Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 412 Bytes

topics-cache.md

File metadata and controls

17 lines (15 loc) · 412 Bytes

Using the Cache component

To use the Cache component, in addition to configuring the connection as described in Installation section, you also have to configure the cache component to be yii\mongodb\Cache:

return [
    //....
    'components' => [
        // ...
        'cache' => [
            'class' => 'yii\mongodb\Cache',
        ],
    ]
];