public function SchemaCache::__construct

Constructs a SchemaCache object.

Overrides CacheArray::__construct

File

drupal/core/lib/Drupal/Core/Utility/SchemaCache.php, line 20
Definition of SchemaCache

Class

SchemaCache
Extends CacheArray to allow for dynamic building of the schema cache.

Namespace

Drupal\Core\Utility

Code

public function __construct() {

  // Cache by request method.
  parent::__construct('schema:runtime:' . ($_SERVER['REQUEST_METHOD'] == 'GET'), 'cache', array(
    'schema' => TRUE,
  ));
}