Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/cache/storage/PhabricatorMarkupCache.php
12242 views
1
<?php
2
3
final class PhabricatorMarkupCache extends PhabricatorCacheDAO {
4
5
protected $cacheKey;
6
protected $cacheData;
7
protected $metadata;
8
9
protected function getConfiguration() {
10
return array(
11
self::CONFIG_SERIALIZATION => array(
12
'cacheData' => self::SERIALIZATION_PHP,
13
'metadata' => self::SERIALIZATION_JSON,
14
),
15
self::CONFIG_BINARY => array(
16
'cacheData' => true,
17
),
18
self::CONFIG_COLUMN_SCHEMA => array(
19
'cacheKey' => 'text128',
20
),
21
self::CONFIG_KEY_SCHEMA => array(
22
'cacheKey' => array(
23
'columns' => array('cacheKey'),
24
'unique' => true,
25
),
26
'dateCreated' => array(
27
'columns' => array('dateCreated'),
28
),
29
),
30
) + parent::getConfiguration();
31
}
32
33
public function getSchemaPersistence() {
34
return PhabricatorConfigTableSchema::PERSISTENCE_CACHE;
35
}
36
37
}
38
39