mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 01:17:13 +08:00
Fix #20513: Fix code examples in PHPDoc
This commit is contained in:
@ -24,7 +24,7 @@ use yii\di\Instance;
|
||||
*
|
||||
* The following example shows how you can configure the application to use DbCache:
|
||||
*
|
||||
* ```php
|
||||
* ```
|
||||
* 'cache' => [
|
||||
* 'class' => 'yii\caching\DbCache',
|
||||
* // 'db' => 'mydb',
|
||||
@ -50,7 +50,7 @@ class DbCache extends Cache
|
||||
* @var string name of the DB table to store cache content.
|
||||
* The table should be pre-created as follows:
|
||||
*
|
||||
* ```php
|
||||
* ```
|
||||
* CREATE TABLE cache (
|
||||
* id char(128) NOT NULL PRIMARY KEY,
|
||||
* expire int(11),
|
||||
@ -59,7 +59,7 @@ class DbCache extends Cache
|
||||
* ```
|
||||
*
|
||||
* For MSSQL:
|
||||
* ```php
|
||||
* ```
|
||||
* CREATE TABLE cache (
|
||||
* id VARCHAR(128) NOT NULL PRIMARY KEY,
|
||||
* expire INT(11),
|
||||
|
||||
Reference in New Issue
Block a user