public DatabaseCacheTagsChecksum::schemaDefinition()
Defines the schema for the {cachetags} table.
File
- core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 167
Class
- DatabaseCacheTagsChecksum
- Cache tags invalidations checksum implementation that uses the database.
Namespace
Drupal\Core\Cache
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | public function schemaDefinition() { $schema = array ( 'description' => 'Cache table for tracking cache tag invalidations.' , 'fields' => array ( 'tag' => array ( 'description' => 'Namespace-prefixed tag string.' , 'type' => 'varchar_ascii' , 'length' => 255, 'not null' => TRUE, 'default' => '' , ), 'invalidations' => array ( 'description' => 'Number incremented when the tag is invalidated.' , 'type' => 'int' , 'not null' => TRUE, 'default' => 0, ), ), 'primary key' => array ( 'tag' ), ); return $schema ; } |
Please login to continue.