| 1 | <?php |
||
| 11 | class DoctrineCacheAdapter implements CacheInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $prefix |
||
| 15 | */ |
||
| 16 | private $prefix; |
||
| 17 | /** |
||
| 18 | * @var Cache $cache |
||
| 19 | */ |
||
| 20 | private $cache; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $prefix |
||
| 24 | * @param Cache $cache |
||
| 25 | */ |
||
| 26 | public function __construct(string $prefix, Cache $cache) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritDoc} |
||
| 34 | */ |
||
| 35 | public function load(string $class): ?ClassMetadata |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | public function put(ClassMetadata $metadata): void |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritDoc} |
||
| 51 | */ |
||
| 52 | public function evict(string $class): void |
||
| 56 | } |
||
| 57 |