@@ -105,7 +105,7 @@ public function set($entryIdentifier, $data, array $tags = [], $lifetime = null)
105105 *
106106 * @api
107107 */
108- public function get ($ entryIdentifier )
108+ public function get (string $ entryIdentifier ): mixed
109109 {
110110 if (!$ this ->has ($ entryIdentifier )) {
111111 return false ;
@@ -117,13 +117,9 @@ public function get($entryIdentifier)
117117 /**
118118 * Checks if a cache entry with the specified identifier exists.
119119 *
120- * @param string $entryIdentifier An identifier specifying the cache entry
121- *
122- * @return bool TRUE if such an entry exists, FALSE if not
123- *
124120 * @api
125121 */
126- public function has ($ entryIdentifier )
122+ public function has (string $ entryIdentifier ): bool
127123 {
128124 $ folder = GeneralUtility::getFileAbsFileName (self ::RELATIVE_STORAGE_FOLDER );
129125 $ fileName = $ this ->getFileName ($ entryIdentifier );
@@ -148,7 +144,7 @@ public function has($entryIdentifier)
148144 *
149145 * @api
150146 */
151- public function remove ($ entryIdentifier )
147+ public function remove (string $ entryIdentifier ): bool
152148 {
153149 $ folder = GeneralUtility::getFileAbsFileName (self ::RELATIVE_STORAGE_FOLDER );
154150 $ fileName = $ this ->getFileName ($ entryIdentifier );
@@ -228,7 +224,7 @@ public function flushByTag($tag): void
228224 *
229225 * @api
230226 */
231- public function findIdentifiersByTag ($ tag )
227+ public function findIdentifiersByTag (string $ tag ): array
232228 {
233229 $ tagsFiles = glob (GeneralUtility::getFileAbsFileName (self ::RELATIVE_STORAGE_FOLDER ) . '*/*/* ' . self ::FILE_EXTENSION_TAG );
234230 $ identifiers = [];
@@ -276,4 +272,9 @@ protected function getFileName(string $entryIdentifier): string
276272
277273 return $ remoteStructure . '/ ' . $ baseName ;
278274 }
275+
276+ public function flushByTags (array $ tags ): void
277+ {
278+ // @todo check
279+ }
279280}
0 commit comments