Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
PersistentCache.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\Cache;
5
7interface PersistentCache {
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
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}
Represents a single result from the persistent cache.
Defines what method should be provided by a class implementing a persistent cache.