1 | <?php |
||
18 | class CacheRegistry extends AbstractService |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Register cache file |
||
23 | */ |
||
24 | const FILE_NAME = 'typo3temp/cache_check.txt'; |
||
25 | |||
26 | /** |
||
27 | * Not changeable caches |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $nonChangeableCaches = []; |
||
32 | |||
33 | /** |
||
34 | * Collect non changeable caches |
||
35 | */ |
||
36 | public function __construct() |
||
44 | |||
45 | /** |
||
46 | * Get the not changeable caches |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | public function getNonChangeableCaches() |
||
54 | |||
55 | /** |
||
56 | * Add the given cache to the registry |
||
57 | * |
||
58 | * @param string $cacheName |
||
59 | */ |
||
60 | public function add($cacheName) |
||
66 | |||
67 | /** |
||
68 | * Remove the cache with the given key |
||
69 | * |
||
70 | * @param string $cacheName |
||
71 | */ |
||
72 | public function remove($cacheName) |
||
81 | |||
82 | /** |
||
83 | * Get the current active caches |
||
84 | * |
||
85 | * @return array |
||
86 | */ |
||
87 | public function getCurrent() |
||
92 | |||
93 | /** |
||
94 | * returns absolute file name |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | protected function getFileName() |
||
102 | } |
||
103 |