1 | <?php |
||
19 | class BackendCache { |
||
20 | |||
21 | const VERSION = '0.1'; |
||
22 | |||
23 | /** |
||
24 | * @var BackendCache |
||
25 | */ |
||
26 | private static $instance = null; |
||
27 | |||
28 | /** |
||
29 | * @var BlobStore |
||
30 | */ |
||
31 | private $blobStore; |
||
32 | |||
33 | /** |
||
34 | * @var Options |
||
35 | */ |
||
36 | private $options; |
||
37 | |||
38 | /** |
||
39 | * @since 1.0 |
||
40 | * |
||
41 | * @param BlobStore $blobStore |
||
42 | * @param Options $options |
||
43 | */ |
||
44 | 5 | public function __construct( BlobStore $blobStore, Options $options ) { |
|
48 | |||
49 | /** |
||
50 | * @since 1.0 |
||
51 | * |
||
52 | * @param BackendCache|null $instance |
||
53 | * |
||
54 | * @return BackendCache |
||
55 | */ |
||
56 | 2 | public static function getInstance( BackendCache $instance = null ) { |
|
87 | |||
88 | /** |
||
89 | * @since 1.0 |
||
90 | */ |
||
91 | 1 | public static function clear() { |
|
94 | |||
95 | /** |
||
96 | * @since 1.0 |
||
97 | * |
||
98 | * @param Title $title |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | 3 | public function getHashFrom( Title $title = null ) { |
|
117 | |||
118 | /** |
||
119 | * @since 1.0 |
||
120 | * |
||
121 | * @param string $title |
||
122 | * |
||
123 | * @return Title|null |
||
124 | */ |
||
125 | 1 | public function getTargetFrom( $title ) { |
|
145 | |||
146 | /** |
||
147 | * @since 1.0 |
||
148 | * |
||
149 | * @return BlobStore |
||
150 | */ |
||
151 | 1 | public function getBlobStore() { |
|
154 | |||
155 | /** |
||
156 | * @since 1.0 |
||
157 | * |
||
158 | * @param Title $title |
||
159 | */ |
||
160 | 1 | public function invalidateCache( Title $title ) { |
|
164 | |||
165 | } |
||
166 |