mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-01 06:58:14 +02:00
Summary: Ref T6822. Test Plan: `grep` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: hach-que, Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11370
33 lines
802 B
PHP
33 lines
802 B
PHP
<?php
|
|
|
|
final class PhabricatorMarkupCache extends PhabricatorCacheDAO {
|
|
|
|
protected $cacheKey;
|
|
protected $cacheData;
|
|
protected $metadata;
|
|
|
|
protected function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_SERIALIZATION => array(
|
|
'cacheData' => self::SERIALIZATION_PHP,
|
|
'metadata' => self::SERIALIZATION_JSON,
|
|
),
|
|
self::CONFIG_BINARY => array(
|
|
'cacheData' => true,
|
|
),
|
|
self::CONFIG_COLUMN_SCHEMA => array(
|
|
'cacheKey' => 'text128',
|
|
),
|
|
self::CONFIG_KEY_SCHEMA => array(
|
|
'cacheKey' => array(
|
|
'columns' => array('cacheKey'),
|
|
'unique' => true,
|
|
),
|
|
'dateCreated' => array(
|
|
'columns' => array('dateCreated'),
|
|
),
|
|
),
|
|
) + parent::getConfiguration();
|
|
}
|
|
|
|
}
|