public DatabaseBackend::schemaDefinition()
Defines the schema for the {cache_*} bin tables.
File
- core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 421
Class
- DatabaseBackend
- Defines a default cache implementation.
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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | public function schemaDefinition() { $schema = array ( 'description' => 'Storage for the cache API.' , 'fields' => array ( 'cid' => array ( 'description' => 'Primary Key: Unique cache ID.' , 'type' => 'varchar_ascii' , 'length' => 255, 'not null' => TRUE, 'default' => '' , 'binary' => TRUE, ), 'data' => array ( 'description' => 'A collection of data to cache.' , 'type' => 'blob' , 'not null' => FALSE, 'size' => 'big' , ), 'expire' => array ( 'description' => 'A Unix timestamp indicating when the cache entry should expire, or ' . Cache::PERMANENT . ' for never.' , 'type' => 'int' , 'not null' => TRUE, 'default' => 0, ), 'created' => array ( 'description' => 'A timestamp with millisecond precision indicating when the cache entry was created.' , 'type' => 'numeric' , 'precision' => 14, 'scale' => 3, 'not null' => TRUE, 'default' => 0, ), 'serialized' => array ( 'description' => 'A flag to indicate whether content is serialized (1) or not (0).' , 'type' => 'int' , 'size' => 'small' , 'not null' => TRUE, 'default' => 0, ), 'tags' => array ( 'description' => 'Space-separated list of cache tags for this entry.' , 'type' => 'text' , 'size' => 'big' , 'not null' => FALSE, ), 'checksum' => array ( 'description' => 'The tag invalidation checksum when this entry was saved.' , 'type' => 'varchar_ascii' , 'length' => 255, 'not null' => TRUE, ), ), 'indexes' => array ( 'expire' => array ( 'expire' ), ), 'primary key' => array ( 'cid' ), ); return $schema ; } |
Please login to continue.