Extends the schema collection class to provide caching
__construct( Cake\Datasource\ConnectionInterface $connection , string|boolean $cacheKey true )
Constructor.
Cake\Datasource\ConnectionInterface
$connection
$cacheKey
optional true Cake\Database\Schema\Collection::__construct()
cacheKey( string $name )
Get the cache key for a given name.
$name
string
cacheMetadata( boolean $enable null )
Sets the cache config name to use for caching table metadata, or disables it if false is passed. If called with no arguments it returns the current configuration name.
$enable
optional null string|boolean
describe( string $name , array $options [] )
Get the column metadata for a table.
$name
$options
optional [] Cake\Database\Schema\Table
Cake\Database\Exception
Cake\Database\Schema\Collection::describe()
_reflect( string $stage , string $name , array $config , Cake\Database\Schema\Table $table )
Helper method for running each step of the reflection process.
$stage
$name
$config
Cake\Database\Schema\Table
$table
Cake\Database\Exception
listTables( )
Get the list of tables available in the current connection.
array
© 2005–2016 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.
http://api.cakephp.org/3.1/class-Cake.Database.Schema.CachedCollection.html