1 | <?php |
||
7 | class CachedConfigCollection extends ConfigCollectionInterface |
||
|
|||
8 | { |
||
9 | /** |
||
10 | * @var CachePoolInterface |
||
11 | */ |
||
12 | protected $pool; |
||
13 | |||
14 | /** |
||
15 | * @var boolean |
||
16 | */ |
||
17 | protected $trackMetadata = false; |
||
18 | |||
19 | /** |
||
20 | * @param boolean $trackHistory |
||
21 | * @param CacheItemPoolInterface $pool |
||
22 | */ |
||
23 | public function __construct(CacheItemPoolInterface $pool, $trackMetadata = false) |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function set($key, ConfigItemInterface $item) |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function get($key) |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function exists($key) |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function clear($key) |
||
80 | |||
81 | /** |
||
82 | * Commits the cache |
||
83 | */ |
||
84 | public function __destruct() |
||
88 | } |
||
89 |