function _coder_cache_schema in Coder 6.2
Same name and namespace in other branches
- 6 coder.install \_coder_cache_schema()
2 calls to _coder_cache_schema()
- coder_schema in ./
coder.install - coder_update_2 in ./
coder.install
File
- ./
coder.install, line 26 - Install, update and uninstall functions for the coder module.
Code
function _coder_cache_schema() {
// Use our own cache table because we can create lots of entries, that slow down and clutter the default cache.
return array(
'description' => t("Coder cache table for improving display of result sets that haven't changed"),
'fields' => array(
'cid' => array(
'description' => t('Primary Key: Unique cache ID.'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'data' => array(
'description' => t('A collection of data to cache.'),
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
),
'expire' => array(
'description' => t('A Unix timestamp indicating when the cache entry should expire, or 0 for never.'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'created' => array(
'description' => t('A Unix timestamp indicating when the cache entry was created.'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'headers' => array(
'description' => t('Any custom HTTP headers to be added to cached data.'),
'type' => 'text',
'not null' => FALSE,
),
'serialized' => array(
'description' => t('A flag to indicate whether content is serialized (1) or not (0).'),
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'expire' => array(
'expire',
),
),
'primary key' => array(
'cid',
),
);
}