Schema Cache.
This tool is intended to be used by deployment scripts so that you can prevent thundering herd effects on the metadata cache when new versions of your application are deployed, or when migrations requiring updated metadata are required.
$_schema
protected __construct( string|Cake\Datasource\ConnectionInterface $connection )
Constructor
Cake\Datasource\ConnectionInterface
$connection
build( string|null $name null )
Build metadata.
$name
optional null clear( string|null $name null )
Clear metadata.
$name
optional null getSchema( Cake\Database\Connection $connection )
Helper method to get the schema collection.
Cake\Database\Connection
$connection
Cake\Database\Schema\Collection
|Cake\Database\Schema\CachedCollection
protected Cake\Database\Schema\Collection
|Cake\Database\Schema\CachedCollection
Schema
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.5/class-Cake.Database.SchemaCache.html