getDb() public static method
Returns the database connection used by this AR class.
By default, the "redis" application component is used as the database connection. You may override this method if you want to use a different database connection.
public static yii\redis\Connection getDb ( ) | ||
---|---|---|
return | yii\redis\Connection |
The database connection used by this AR class. |
Please login to continue.