[TASK] Re-work/simplify copyright header in PHP files - Part 2
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Cache / Backend / NullBackend.php
1 <?php
2 namespace TYPO3\CMS\Core\Cache\Backend;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16 /**
17 * A caching backend which forgets everything immediately
18 *
19 * This file is a backport from FLOW3
20 *
21 * @author Robert Lemke <robert@typo3.org>
22 * @author Karsten Dambekalns <karsten@typo3.org>
23 * @api
24 */
25 class NullBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend implements \TYPO3\CMS\Core\Cache\Backend\PhpCapableBackendInterface, \TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface {
26
27 /**
28 * Acts as if it would save data
29 *
30 * @param string $entryIdentifier ignored
31 * @param string $data ignored
32 * @param array $tags ignored
33 * @param integer $lifetime ignored
34 * @return void
35 * @api
36 */
37 public function set($entryIdentifier, $data, array $tags = array(), $lifetime = NULL) {
38
39 }
40
41 /**
42 * Acts as if it would enable data compression
43 *
44 * @param boolean $compression ignored
45 * @return void
46 */
47 public function setCompression($compression) {
48
49 }
50
51 /**
52 * Returns False
53 *
54 * @param string $entryIdentifier ignored
55 * @return boolean FALSE
56 * @api
57 */
58 public function get($entryIdentifier) {
59 return FALSE;
60 }
61
62 /**
63 * Returns False
64 *
65 * @param string $entryIdentifier ignored
66 * @return boolean FALSE
67 * @api
68 */
69 public function has($entryIdentifier) {
70 return FALSE;
71 }
72
73 /**
74 * Does nothing
75 *
76 * @param string $entryIdentifier ignored
77 * @return boolean FALSE
78 * @api
79 */
80 public function remove($entryIdentifier) {
81 return FALSE;
82 }
83
84 /**
85 * Returns an empty array
86 *
87 * @param string $tag ignored
88 * @return array An empty array
89 * @api
90 */
91 public function findIdentifiersByTag($tag) {
92 return array();
93 }
94
95 /**
96 * Does nothing
97 *
98 * @return void
99 * @api
100 */
101 public function flush() {
102
103 }
104
105 /**
106 * Does nothing
107 *
108 * @param string $tag ignored
109 * @return void
110 * @api
111 */
112 public function flushByTag($tag) {
113
114 }
115
116 /**
117 * Does nothing
118 *
119 * @return void
120 * @api
121 */
122 public function collectGarbage() {
123
124 }
125
126 /**
127 * Does nothing
128 *
129 * @param string $identifier An identifier which describes the cache entry to load
130 * @return void
131 * @api
132 */
133 public function requireOnce($identifier) {
134
135 }
136
137 }