1 | <?php |
||
11 | class CacheKeyProvider { |
||
12 | |||
13 | /** |
||
14 | * Update the version to force a recache for all items due to |
||
15 | * required changes |
||
16 | */ |
||
17 | const VERSION = '1.1'; |
||
18 | |||
19 | /** |
||
20 | * @var string|null |
||
21 | */ |
||
22 | private $cachePrefix = null; |
||
23 | |||
24 | /** |
||
25 | * @since 1.0 |
||
26 | * |
||
27 | * @param string $cachePrefix |
||
28 | */ |
||
29 | 4 | public function __construct( $cachePrefix ) { |
|
32 | |||
33 | /** |
||
34 | * @since 1.0 |
||
35 | * |
||
36 | * @param string $key |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | 3 | public function getSiteCacheKey( $key ) { |
|
43 | |||
44 | /** |
||
45 | * @since 1.0 |
||
46 | * |
||
47 | * @param string $key |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | 1 | public function getPageLanguageCacheBlobKey( $key = '' ) { |
|
54 | |||
55 | /** |
||
56 | * @since 1.0 |
||
57 | * |
||
58 | * @param string $key |
||
59 | * @param boolean $stable |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | 3 | public function getPageCacheKey( $key, $stable = true ) { |
|
66 | |||
67 | } |
||
68 |