1 | <?php |
||
9 | class ApiEntityCache implements EntityDataCacheInterface |
||
10 | { |
||
11 | /** @var CacheItemPoolInterface */ |
||
12 | private $cache; |
||
13 | /** @var ApiMetadata */ |
||
14 | private $metadata; |
||
15 | /** @var CacheConfigurationInterface */ |
||
16 | private $configuration; |
||
17 | |||
18 | /** |
||
19 | * ApiEntityCache constructor. |
||
20 | * |
||
21 | * @param CacheItemPoolInterface $cache |
||
22 | * @param ApiMetadata $metadata |
||
23 | * @param CacheConfigurationInterface $configuration |
||
24 | */ |
||
25 | 1 | public function __construct( |
|
34 | |||
35 | /** {@inheritdoc} */ |
||
36 | 1 | public function get(array $identifier) |
|
44 | |||
45 | /** {@inheritdoc} */ |
||
46 | 1 | public function set(array $identifier, $data) |
|
59 | |||
60 | /** {@inheritdoc} */ |
||
61 | 1 | public function getMetadata() |
|
65 | |||
66 | /** {@inheritdoc} */ |
||
67 | public function getConfiguration() |
||
71 | |||
72 | /** |
||
73 | * @param array $identifier |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | 1 | private function getKey(array $identifier) |
|
81 | } |
||
82 |