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.
Cake\Database\Schema\CachedCollectionSchema
Constructor
Build metadata.
Clear metadata.
Helper method to get the schema collection.
__construct(Cake\Database\Connection $connection)
Constructor
Cake\Database\Connection $connection Connection name to get the schema for or a connection instance
build(string|null $name = null): array<string>
Build metadata.
string|null $name optional The name of the table to build cache data for.
array<string>clear(string|null $name = null): array<string>
Clear metadata.
string|null $name optional The name of the table to clear cache data for.
array<string>getSchema(Cake\Database\Connection $connection): Cake\Database\Schema\CachedCollection
Helper method to get the schema collection.
Cake\Database\Connection $connection Connection object
Cake\Database\Schema\CachedCollectionRuntimeExceptionSchema
Cake\Database\Schema\CachedCollection
© 2005–present 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/4.4/class-Cake.Database.SchemaCache.html