1 | <?php |
||
19 | class Typo3DatabaseBackend implements StatisticsInterface |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * Get the number of entries |
||
24 | * |
||
25 | * @param Cache $cache |
||
26 | * |
||
27 | * @return int |
||
28 | */ |
||
29 | public function countEntries(Cache $cache) |
||
34 | |||
35 | /** |
||
36 | * Get the size of the cache in byte |
||
37 | * |
||
38 | * @param Cache $cache |
||
39 | * |
||
40 | * @return float |
||
41 | */ |
||
42 | public function getSize(Cache $cache) |
||
54 | |||
55 | /** |
||
56 | * Get the number of tags |
||
57 | * |
||
58 | * @param Cache $cache |
||
59 | * |
||
60 | * @return int |
||
61 | */ |
||
62 | public function countTags(Cache $cache) |
||
67 | |||
68 | /** |
||
69 | * Get database connection |
||
70 | * |
||
71 | * @return DatabaseConnection |
||
72 | */ |
||
73 | protected function getDatabaseConnection() |
||
77 | |||
78 | /** |
||
79 | * Returns the age of found entries in seconds |
||
80 | * |
||
81 | * @param Cache $cache |
||
82 | * |
||
83 | * @return null |
||
84 | */ |
||
85 | public function getAge(Cache $cache) |
||
89 | |||
90 | /** |
||
91 | * Returns the age of found entries in seconds// DOES NOT. RETURNS LEFT LIFETIME |
||
92 | * |
||
93 | * @param Cache $cache |
||
94 | * |
||
95 | * @return int|null |
||
96 | */ |
||
97 | public function getExpires(Cache $cache) |
||
108 | } |
||
109 |