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',
        ],
    ]
];