By default, DbCache stores session data in a DB table named 'cache'. This table
must be pre-created. The table name can be changed by setting [[cacheTable]].
Please refer to Cache for common cache operations that are supported by DbCache.
The following example shows how you can configure the application to use DbCache:
php
'cache' => [
'class' => 'yii\caching\DbCache',
'db' => 'mydb',
'cacheTable' => 'my_cache',
]
For more details and usage information on Cache, see the guide article on caching.