Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\Extension\Translate\Cache; |
5 | |
6 | /** Defines what method should be provided by a class implementing a persistent cache */ |
7 | interface PersistentCache { |
8 | /** @return PersistentCacheEntry[] */ |
9 | public function get( string ...$keynames ): array; |
10 | |
11 | public function has( string $keyname ): bool; |
12 | |
13 | public function hasEntryWithTag( string $tag ): bool; |
14 | |
15 | public function setExpiry( string $keyname, int $expiryTime ): void; |
16 | |
17 | /** @return PersistentCacheEntry[] */ |
18 | public function getByTag( string $tag ): array; |
19 | |
20 | public function set( PersistentCacheEntry ...$cacheEntry ): void; |
21 | |
22 | public function delete( string ...$keyname ): void; |
23 | |
24 | public function deleteEntriesWithTag( string $tag ): void; |
25 | |
26 | public function clear(): void; |
27 | } |