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 | /** |
||
74 | * @param array $identifier |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | 1 | private function getKey(array $identifier) |
|
82 | |||
83 | /** |
||
84 | * Clears the cache for given entity identifier |
||
85 | * |
||
86 | * @param array $identifier |
||
87 | * |
||
88 | * @return void |
||
89 | */ |
||
90 | public function clear(array $identifier) |
||
94 | } |
||
95 |