Extends the schema collection class to provide caching
$_cache protected string|booleanThe name of the cache config key to use for caching table metadata, of false if disabled.
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.
Sets the cache config name to use for caching table metadata, or disables it if false is passed.
__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 cacheMetadata( boolean|null $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 describe( string $name , array $options [] )
Get the column metadata for a table.
$name $options optional [] Cake\Database\Schema\TableSchemaCake\Database\ExceptionCake\Database\Schema\Collection::describe() getCacheMetadata( )
Gets the cache config name to use for caching table metadata, false means disabled.
setCacheMetadata( boolean $enable )
Sets the cache config name to use for caching table metadata, or disables it if false is passed.
$enable _reflect( string $stage , string $name , array $config , Cake\Database\Schema\TableSchema $schema )
Helper method for running each step of the reflection process.
$stage $name $config Cake\Database\Schema\TableSchema $schema Cake\Database\ExceptionlistTables( )
Get the list of tables available in the current connection.
protected string|boolean
The name of the cache config key to use for caching table metadata, of false if disabled.
false
© 2005–2018 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.Schema.CachedCollection.html