\Cake\DatabaseSchemaCache

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.

Summary

Methods
Properties
Constants
__construct()
build()
clear()
getSchema()
No public properties found
No constants found
No protected methods found
$_schema
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(string|\Cake\Datasource\ConnectionInterface  $connection) 

Constructor

Parameters

string|\Cake\Datasource\ConnectionInterface $connection

Connection name to get the schema for or a connection instance

build()

build(string|null  $name = null) : array

Build metadata.

Parameters

string|null $name

The name of the table to build cache data for.

Returns

array —

Returns a list build table caches

clear()

clear(string|null  $name = null) : array

Clear metadata.

Parameters

string|null $name

The name of the table to clear cache data for.

Returns

array —

Returns a list of cleared table caches