1 | <?php |
||
10 | class CacheManagerService implements SingletonInterface |
||
11 | { |
||
12 | |||
13 | private const TYPO3_CORE_CACHE_IDENTIFIERS = [ |
||
14 | 'cache_core', |
||
15 | 'cache_hash', |
||
16 | 'cache_pages', |
||
17 | 'cache_pagesection', |
||
18 | 'cache_runtime', |
||
19 | 'cache_rootline', |
||
20 | 'cache_imagesizes', |
||
21 | 'assets', |
||
22 | 'l10n', |
||
23 | 'fluid_template', |
||
24 | 'extbase_reflection', |
||
25 | 'extbase_datamapfactory_datamap', |
||
26 | 'adminpanel_requestcache', |
||
27 | ]; |
||
28 | |||
29 | private const TYPO3_SESSION_IDENTIFIERS = [ |
||
30 | 'BE', |
||
31 | 'FE', |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | private $cacheExtensionsBackends = []; |
||
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | public function getSessionBackends(): array |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | public function getCacheCoreBackends(): array |
||
54 | |||
55 | /** |
||
56 | * @return array |
||
57 | */ |
||
58 | public function getCacheExtensionsBackends(): array |
||
70 | |||
71 | /** |
||
72 | * @param string $identifier |
||
73 | * @return CacheBackend |
||
74 | */ |
||
75 | public function getCacheBackendByIdentifier(string $identifier): CacheBackend |
||
83 | |||
84 | /** |
||
85 | * @param string $identifier |
||
86 | * @return SessionBackend |
||
87 | */ |
||
88 | public function getSessionBackendByIdentifier(string $identifier): SessionBackend |
||
96 | |||
97 | } |