1 | <?php |
||
19 | abstract class AbstractHandler |
||
20 | { |
||
21 | /** |
||
22 | * @var \Symfony\Component\Cache\Adapter\TagAwareAdapterInterface |
||
23 | */ |
||
24 | protected $cache; |
||
25 | |||
26 | /** |
||
27 | * @var \eZ\Publish\SPI\Persistence\Handler |
||
28 | */ |
||
29 | protected $persistenceHandler; |
||
30 | |||
31 | /** |
||
32 | * @var \eZ\Publish\Core\Persistence\Cache\PersistenceLogger |
||
33 | */ |
||
34 | protected $logger; |
||
35 | |||
36 | /** |
||
37 | * Setups current handler with everything needed. |
||
38 | * |
||
39 | * @param \Symfony\Component\Cache\Adapter\TagAwareAdapterInterface $cache |
||
40 | * @param \eZ\Publish\SPI\Persistence\Handler $persistenceHandler |
||
41 | * @param \eZ\Publish\Core\Persistence\Cache\PersistenceLogger $logger |
||
42 | */ |
||
43 | public function __construct( |
||
52 | |||
53 | /** |
||
54 | * Helper for getting multiple cache items. |
||
55 | * |
||
56 | * @param array $ids |
||
57 | * @param string $keyPrefix |
||
58 | * |
||
59 | * @return array 2 arrays returned as [$cacheMissIds, $list], where list contains objects / cache misses, key by id. |
||
60 | */ |
||
61 | final protected function getMultipleCacheItems(array $ids, string $keyPrefix) : array |
||
88 | } |
||
89 |